我喜欢有角度的材料的设计,但使用它可能会很痛苦。该网站展示了一个使用的示例
<mat-icon>home</mat-icon>
然而,当我在项目中做同样的事情时,我只看到文本“home”。
我不知道除了 import MatIconModule 之外我需要在哪里做任何事情。
有人有线索吗?
我正在使用角度材料 v8.0.1。我还安装了material-design-icons v 3.0.1。并将其放在我的index.html 中。 (我一次做了一个)
<link rel="stylesheet" href="https://storage.googleapis.com/non-spec-apps/mio-icons/latest/outline.css">
你需要删除
<link rel="stylesheet" href="https://storage.googleapis.com/non-spec-apps/mio-icons/latest/outline.css">
并更改为
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)