forked from mgechev/angular-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Add PrimeNG
Clayton K. N. Passos edited this page Sep 22, 2016
·
23 revisions
- Add the NPM packages
npm install --save primeng
npm install --save primeui
npm install --save font-awesome
Configure FontAwesome with the below paths.
See this for a guide on how to add external fonts.
FONTS_DEST = `${this.APP_DEST}/font-awesome/fonts`;
FONTS_SRC = ['node_modules/font-awesome/fonts/**'];
Replace <theme-name>
with whatever theme from PrimeNG you want to use. See this for a guide on how to add external scripts and styles.
{ src: 'primeng/resources/primeng.min.css', inject: true },
{ src: 'primeng/resources/themes/<theme-name>/theme.css', inject: true },
{ src: 'font-awesome/css/font-awesome.min.css', inject: true },
- SystemJS config for the
dev
environment
Modify SYSTEM_CONFIG_DEV
in seed.config.ts
adding this:
...
protected SYSTEM_CONFIG_DEV: any = {
...
paths: {
...
'primeng': `${this.APP_BASE}node_modules/primeng`,
...
}
...