mdDataTable
mdDataTable copied to clipboard
Error: [$injector:modulerr] similar to issue #113
Using npm and grunt, when running the "grunt watch" command it aborts with the error messages saying: Error: [$injector:modulerr] Failed to instantiate module myProject due to: Error: [$injector:modulerr] Failed to instantiate module mdDataTable due to: Error: [$injector:modulerr] Failed to instantiate module ngMdIcons due to: Error: [$injector:nomod] Module 'ngMdIcons' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.5.5/$injector/nomod?p0=ngMdIcons
Installed with command: npm install md-data-table Added the dependency like so: angular.module('myProject', ['ngMaterial', "mdDataTable"]) ....
Not sure what is causing this error. Any ideas?
You need to add the angular-material-icons.min.js script to your HTML. Adding the following fixed the issue for me:
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-material-icons/0.5.0/angular-material-icons.min.js"></script>
I have the same problem here. DI doesn't work and I c an figure out what the problem is. All other dependencies work but if I add mdDataTable I get the following error. jquery.js:3855 Uncaught Error: [$injector:modulerr] Failed to instantiate module
(anonymous function) @ angular.js:68 (anonymous function) @ angular.js:4640 forEach @ angular.js:321 loadModules @ angular.js:4601 createInjector @ angular.js:4523 doBootstrap @ angular.js:1758 bootstrap @ angular.js:1779 angularInit @ angular.js:1664 (anonymous function) @ angular.js:31763 mightThrow @ jquery.js:3570 process @ jquery.js:3638
I also tried to add angular-material-icons but it doesn't change anything.
I am also seeing the same issue, any resolution for this?
Me too I tried to qqd qngulqr -materil-icons but it doesn't change anything , someone has solution