July 2017
Intermediate to advanced
384 pages
8h 23m
English
Integrating PrimeNG with Angular CLI is straightforward. First, install and save the dependencies:
npm install primeng --savenpm install font-awesome --save
Second, edit the .angular-cli.json file and add three more CSS files to the styles section. These are the same files as in the SystemJS- and Webpack-based setups:
"styles": [ "styles.css", "../node_modules/primeng/resources/themes/bootstrap/theme.css", "../node_modules/primeng/resources/primeng.min.css", "../node_modules/font-awesome/css/font-awesome.min.css"]
Now, you can import desired PrimeNG modules. Refer to the Running PrimeNG with SystemJS section to see how to import PrimeNG modules. In the seed project on GitHub, we have imported the MessagesModule ...
Read now
Unlock full access