如何在角度2中使用材质图标?

时间:2017-07-04 20:41:52

标签: angular2-template

我正在尝试使用下面的代码。但是主页图标没有显示出来。

       <button md-button routerLink="/">
            <md-icon>home</md-icon> 
        </button>

1 个答案:

答案 0 :(得分:0)

在index.html

中添加角度材质图标链接
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">