Angular 2 - PrimeNg style not working

后端 未结 7 1866
野趣味
野趣味 2020-12-29 10:53

I\'ve followed the instruction to install primeng by running npm install primeng --save then importing what I need in the app.module.ts file, for e

7条回答
  •  渐次进展
    2020-12-29 11:22

    in the style.css file , add your imports for example :

     @import '../node_modules/primeng/resources/themes/omega/theme.css'
    

    if you have correctly downloaded PrimeNG, it should work now

    just a bit note : be sure you have imported the primeNG modules in the correct place (In fact, we import modules not components, take care;)

提交回复
热议问题