Installing Angular Material, “Failed to instantiate module ngMaterial” even though I'm using angular version 1.3.0

前端 未结 1 2047
我在风中等你
我在风中等你 2020-12-18 20:32

This is very frustrating, Im using a mean.js yeoman generated application and can\'t get to seem to get angular-material up and running. I read another stackoverflow questio

相关标签:
1条回答
  • 2020-12-18 21:02

    Angular material, ngMaterial, has dependency on ngAria and ngAnimate as well. You would need to load them.

    angular.module('ngMaterial', ["ng","ngAnimate","ngAria", ...other material sub modules
    

    You could download it from angular aria and angular animate. Use the correct version of these based on your angular version.

    Also just adding the scripts in the project is not enough you need to load them in your html as well. Also load them before ng-material script.

    0 讨论(0)
提交回复
热议问题