prime ng styles not applying angular2

前端 未结 7 1890
予麋鹿
予麋鹿 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:38

    The best solution for me was to add the styles to the angular.json file. Dont forget to stop your project and ng serve again after the changes:

    "styles": [
                            "src/styles.scss",
                            "node_modules/primeng/resources/themes/saga-blue/theme.css",
                            "node_modules/primeng/resources/primeng.min.css"
    
                        ],
    

提交回复
热议问题