0
在我的環境中,MDL不適用於Angular。 我繼續本教程:將MDL與Angular 2集成
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.
oohh它有點複雜..我開始使用角度(我討厭它.. )有什麼最容易的? – VANILKA
克隆這個項目:https://github.com/mseemann/angular-mdl-a4-angular-cli;) – michael