#angularjs
#angularjs
Вопрос:
Когда я использую use ngMaterial, у меня возникает эта ошибка
Error: [$injector:modulerr] http://errors.angularjs.org/1.4.7/$injector/modulerr?p0=adminamp;p1=%5B$injector%3Amodulerr%5D http%3A%2F/errors.angularjs.org/1.4.7%2F$injector%2Fmodulerr?p0%3DngMaterial&p1%3D%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.4.7%2F%24injector%2Fmodulerr%3Fp0%3DngAnimate%26p1%3D%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.4.7%252F%2524injector%252Fnomod%253Fp0%253DngAnimate%250AI%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A6%253A416%250Ade%252F%253C%252F%253C%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A24%253A186%250Aa%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A23%253A252%250Ade%252F%253C%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A23%253A495%250Ah%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A427%250Am%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A7%253A320%250Ah%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A275%250Ah%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A444%250Am%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A7%253A320%250Ah%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A275%250Ah%252F%253C%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A444%250Am%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A7%253A320%250Ah%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A37%253A275%250Afb%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A41%253A35%250Azc%252Fd%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A19%253A463%250Azc%2540http%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fangularjs%252F1.4.7%252Fangular.min.js%253A20%253A274%250A%2540http%253A%252F%252Flocalhost%253A3000%252Fadmin%252Fadmin.js%253A53%253A13%250Am.Callbacks%252Fj%2540http%253A%252F%252Flocalhost%253A3000%252Fadmin%252Fadmin-content%252Fjs%252Fjquery.js%253A2%253A27239%250Am.Callbacks%252Fk.fireWith%2540http%253A%252F%252Flocalhost%253A3000%252Fadmin%252Fadmin-content%252Fjs%252Fjquery.js%253A2%253A28057%250Ax%2540http%253A%252F%252Flocalhost%253A3000%252Fadmin%252Fadmin-content%252Fjs%252Fjquery.js%253A4%253A21841%250A.send%252Fb%2540http%253A%252F%252Flocalhost%253A3000%252Fadmin%252Fadmin-content%252Fjs%252Fjquery.js%253A4%253A25897%250A%0AI%2F%3C%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A6%3A416%0Ah%2F%3C%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A38%3A184%0Am%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A7%3A320%0Ah%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A37%3A275%0Ah%2F%3C%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A37%3A444%0Am%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A7%3A320%0Ah%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A37%3A275%0Ah%2F%3C%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A37%3A444%0Am%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A7%3A320%0Ah%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A37%3A275%0Afb%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A41%3A35%0Azc%2Fd%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A19%3A463%0Azc%40http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.4.7%2Fangular.min.js%3A20%3A274%0A%40http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fadmin.js%3A53%3A13%0Am.Callbacks%2Fj%40http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fadmin-content%2Fjs%2Fjquery.js%3A2%3A27239%0Am.Callbacks%2Fk.fireWith%40http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fadmin-content%2Fjs%2Fjquery.js%3A2%3A28057%0Ax%40http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fadmin-content%2Fjs%2Fjquery.js%3A4%3A21841%0A.send%2Fb%40http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fadmin-content%2Fjs%2Fjquery.js%3A4%3A25897%0A
I%2F%3C@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:6:416
h%2F%3C@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:38:184
m@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:7:320
h@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:37:275
h%2F%3C@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:37:444
m@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:7:320
h@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:37:275
fb@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:41:35
zc%2Fd@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:19:463
zc@http%3A%2F/ajax.googleapis.com%2Fajax%2Flibs%2Fangularjs/1.4.7/angular.min.js:20:274
@http%3A%2F%2Flocalhost:3000%2Fadmin/admin.js:53:13
m.Callbacks%2Fj@http%3A%2F%2Flocalhost:3000%2Fadmin/admin-content%2Fjs/jquery.js:2:27239
m.Callbacks/k.fireWith@http%3A%2F%2Flocalhost:3000%2Fadmin/admin-content%2Fjs/jquery.js:2:28057
x@http%3A%2F%2Flocalhost:3000%2Fadmin/admin-content%2Fjs/jquery.js:4:21841
.send%2Fb@http%3A%2F%2Flocalhost:3000%2Fadmin/admin-content%2Fjs/jquery.js:4:25897
angular.min.js:6:416
Ответ №1:
Если вы перейдете по этой ссылке, Angular предоставит некоторые подробности о том, что может быть причиной.
Вот фрагмент:
Description
This error occurs when a module fails to load due to some exception. The error message above should provide additional context.
A common reason why the module fails to load is that you've forgotten to include the file with the defined module or that the file couldn't be loaded.
Похоже, вы не включили модуль ngMaterial.