Bug
It should work
Result: Material icon doesn't show on button, on card, on anywhere
Step by step followed the https://material.angular.io/guide/getting-started
First time try
Angular 5.0.0-rc.3
Material: 2.0.0-beta.12
OS: Windows 10
Typescript: 2.5.3
Browsers: Google Chrome
I imported hammerjs. I linked the google material+icon to index.html
Show your full code please.
menu icon online show the text
On Sun, Oct 22, 2017 at 1:33 AM, Edric Chan notifications@github.com
wrote:
Show your full code please.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/material2/issues/7948#issuecomment-338452952,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFu8-QE2MeunzG-y_27cJZtHt2bW7yNoks5sutOmgaJpZM4QByFo
.
--
Lei Hua
[email protected] leihua@gmail.com
That's because you're missing the CSS stylesheet for Material Icons!
Add the following to your index.html
:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
Around here:
https://github.com/leihuagh/MEAN-Project-Learning/blob/ba731ca72d98e1eaaf9bb0067c130184979de035/client/src/index.html#L6-L8
@leihuagh - Import of MatIconModule
is missing. (in "_app-material.module.ts_")
For troubleshooting / questions please use stack overflow, gitter, etc.
@ghd8 Thank you so much. The MatIconModule was missing in my material list
It works now.
@Chan4077 Thank you too
It could be nice to have entire material package in one in the future releases.
Hello, i found this issue not working on IOS. I tried to use mat-error on IOS and its not showing, the code i use :
<div class="error-container" *ngIf="dataerror">
<div class="error-content">
<div class="error-icon">
<mat-icon color="warn">warning</mat-icon>
</div>
<div class="error-label">
<span>{{errordesc}}</span>
</div>
</div>
</div>
I also attach the stylesheet on index html.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
That's because you're missing the CSS stylesheet for Material Icons!
Add the following to your
index.html
:Around here:
https://github.com/leihuagh/MEAN-Project-Learning/blob/ba731ca72d98e1eaaf9bb0067c130184979de035/client/src/index.html#L6-L8