MDL在我的环境中没有发挥作用。我继续进行本教程:
https://getmdl.io/started/index.html
库存在于node_modules中,但调试器向我显示消息:
[WDS] App updated. Reloading...
login:10 GET http://localhost:4200/node_modules/material-design-lite/material.min.css
login:11 GET http://localhost:4200/node_modules/material-design-lite/material.min.js
login:12 GET http://localhost:4200/node_modules/material-design-icons/iconfont/material-icons.css
Navigated to http://localhost:4200/login
lang.js:130 Angular is running in the development mode. Call enableProdMode() to enable the production mode.发布于 2017-04-10 07:40:40
从mdl导入一些脚本是不够的。还需要做更多的工作,或者可以使用包装器库来处理大部分工作:https://github.com/mseemann/angular2-mdl。
https://stackoverflow.com/questions/43316057
复制相似问题