官术网_书友最值得收藏!

Adding PrimeNG dependencies

Integrating PrimeNG with Angular CLI is straightforward. First, install and save the dependencies:

npm install primeng --save
npm 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 and put some demo code into message.component.html and message.component.ts.

主站蜘蛛池模板: 民权县| 安西县| 沙雅县| 聊城市| 类乌齐县| 怀宁县| 宽城| 淄博市| 巴林左旗| 清远市| 华亭县| 高阳县| 通州区| 巴塘县| 和平区| 桑日县| 商南县| 富宁县| 阆中市| 临潭县| 大方县| 泸定县| 高安市| 平罗县| 紫金县| 锡林郭勒盟| 武清区| 霞浦县| 申扎县| 双辽市| 师宗县| 绍兴市| 思南县| 怀来县| 天柱县| 静乐县| 大足县| 长子县| 湖北省| 城市| 东乡县|