평균 js를 사용하고 있습니다. 각도 및 평균 js의 초보자입니다. 각진 부트 스트랩을 각 재료로 교체했습니다. Heres는 내 bower.json의 사본 :
평균 스택에서 ngMaterial 모듈을 인스턴스화하지 못했습니다.
{
"name": "meanjs",
"description": "Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js",
"dependencies": {
"angular": "~1.3",
"angular-resource": "~1.3",
"angular-animate": "~1.3",
"angular-messages": "~1.3",
"angular-mocks": "~1.3",
"angular-ui-notification": "~0.2.0",
"angular-ui-router": "~0.2.10",
"ng-file-upload": "~12.1.0",
"angular-material": "0.7.1",
"owasp-password-strength-test": "~1.3.0"
}
}
Heres는 콘솔 오류 메시지 : 오류 : [$ 주입기 : modulerr] 모듈 ngMaterial을 인스턴스화하는 데 실패로 인해 : 오류 : [$ 주입기 : nomod] 'ngMaterial'모듈을 사용할 수 없습니다! 모듈 이름의 철자가 잘못되었거나로드하는 것을 잊었습니다. 모듈을 등록하면 종속성을 두 번째 인수로 지정하십시오.
각도 config.js 파일 :
'use strict';
var applicationModuleName = 'mean';
var service = {
applicationEnvironment: window.env,
applicationModuleName: applicationModuleName,
applicationModuleVendorDependencies: ['ngResource', 'ngMessages',
'ui.router', 'ngFileUpload', 'ui-notification','ngMaterial'],
registerModule: registerModule
};
스택 오버플로에 오신 것을 환영합니다! [좋은 질문을하는 방법은 무엇입니까?] (https://stackoverflow.com/help/how-to-ask)와 [[Minimal, Complete, Verifiable Example]을 만드는 방법] (https : //stackoverflow.com/help/mcve). – Teasel