Material-icons not rendering
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Following is my package.json:
"dependencies":
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@material/form-field": "^0.39.1",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"angular4-fusioncharts": "^1.0.0",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"jquery": "^3.3.1",
"material-design-icons": "^3.0.1",
"fusioncharts": "^3.12.2",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
And I have tried to implement it as:
<mat-icon>date_range</mat-icon>
The icons are missing.
Please help.
javascript html angular angular-material webpage-rendering
|
show 3 more comments
Following is my package.json:
"dependencies":
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@material/form-field": "^0.39.1",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"angular4-fusioncharts": "^1.0.0",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"jquery": "^3.3.1",
"material-design-icons": "^3.0.1",
"fusioncharts": "^3.12.2",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
And I have tried to implement it as:
<mat-icon>date_range</mat-icon>
The icons are missing.
Please help.
javascript html angular angular-material webpage-rendering
1
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
yes i have added
– chaucer
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
2
have you add<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page
– Shirish Patel
Nov 14 '18 at 9:09
|
show 3 more comments
Following is my package.json:
"dependencies":
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@material/form-field": "^0.39.1",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"angular4-fusioncharts": "^1.0.0",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"jquery": "^3.3.1",
"material-design-icons": "^3.0.1",
"fusioncharts": "^3.12.2",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
And I have tried to implement it as:
<mat-icon>date_range</mat-icon>
The icons are missing.
Please help.
javascript html angular angular-material webpage-rendering
Following is my package.json:
"dependencies":
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@material/form-field": "^0.39.1",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"angular4-fusioncharts": "^1.0.0",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"jquery": "^3.3.1",
"material-design-icons": "^3.0.1",
"fusioncharts": "^3.12.2",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
And I have tried to implement it as:
<mat-icon>date_range</mat-icon>
The icons are missing.
Please help.
javascript html angular angular-material webpage-rendering
javascript html angular angular-material webpage-rendering
edited Nov 16 '18 at 10:46
Eugene Mihaylin
1,0101725
1,0101725
asked Nov 14 '18 at 9:03
chaucerchaucer
14
14
1
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
yes i have added
– chaucer
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
2
have you add<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page
– Shirish Patel
Nov 14 '18 at 9:09
|
show 3 more comments
1
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
yes i have added
– chaucer
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
2
have you add<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page
– Shirish Patel
Nov 14 '18 at 9:09
1
1
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
yes i have added
– chaucer
Nov 14 '18 at 9:07
yes i have added
– chaucer
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
2
2
have you add
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page– Shirish Patel
Nov 14 '18 at 9:09
have you add
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page– Shirish Patel
Nov 14 '18 at 9:09
|
show 3 more comments
1 Answer
1
active
oldest
votes
Perhaps you missed font import in index.html file:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53296391%2fmaterial-icons-not-rendering%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Perhaps you missed font import in index.html file:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
add a comment |
Perhaps you missed font import in index.html file:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
add a comment |
Perhaps you missed font import in index.html file:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
Perhaps you missed font import in index.html file:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
answered Nov 14 '18 at 9:17
Eugene MihaylinEugene Mihaylin
1,0101725
1,0101725
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53296391%2fmaterial-icons-not-rendering%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
did you import them in your app.module?
– Roj
Nov 14 '18 at 9:05
yes i have added
– chaucer
Nov 14 '18 at 9:07
check the material-module.ts file and see how it's imported in the main.ts or app.module in your case stackblitz.com/angular/xnjoedalvkk?file=material-module.ts
– Roj
Nov 14 '18 at 9:07
import MatIconModule from '@angular/material/icon';
– chaucer
Nov 14 '18 at 9:08
2
have you add
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
in index page– Shirish Patel
Nov 14 '18 at 9:09