Material-icons not rendering










0















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.










share|improve this question



















  • 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















0















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.










share|improve this question



















  • 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













0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 10:46









Eugene Mihaylin

9681424




9681424










asked Nov 14 '18 at 9:03









chaucerchaucer

13




13







  • 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





    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












1 Answer
1






active

oldest

votes


















0














Perhaps you missed font import in index.html file:



<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">





share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    Perhaps you missed font import in index.html file:



    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">





    share|improve this answer



























      0














      Perhaps you missed font import in index.html file:



      <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">





      share|improve this answer

























        0












        0








        0







        Perhaps you missed font import in index.html file:



        <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">





        share|improve this answer













        Perhaps you missed font import in index.html file:



        <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 9:17









        Eugene MihaylinEugene Mihaylin

        9681424




        9681424





























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            這個網誌中的熱門文章

            Barbados

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3