I want to use prime-ng component in my angular2 application but still going confuse how to add in application. Please give a working example of application with prime ng.
You have to install primeng and primeicons.
npm i primeng primeicons -s
Then you have to import the styles in the angular.json. Choose a Theme under ../primeng/ressources/themes/YOUR_CHOOSEN_THEM
"styles": [
"node_modules/primeng/resources/themes/nova-light/theme.css",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
],
Now you can import the Modules you need from primeng.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.