prime ng styles not applying angular2

前端 未结 7 1970
予麋鹿
予麋鹿 2021-01-11 20:24

Hi I just started working with angular 2. I found this library PrimeNG, I followed this tutorial: http://blog.davincisoftware.sk/primeng-web-component-framework-based-on-ang

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 20:39

    Add the necessary CSS files to the styles section of your .angular-cli.json:

    "styles": [
        "../node_modules/font-awesome/css/font-awesome.css",
        "../node_modules/primeng/resources/primeng.min.css",
        "../node_modules/primeng/resources/themes/omega/theme.css"
        //...
    ],
    

    See also PrimeNg Setup, section "Styles Configuration".

提交回复
热议问题