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

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.

主站蜘蛛池模板: 凤凰县| 平江县| 阿勒泰市| 宁都县| 龙州县| 舞阳县| 南乐县| 江源县| 青海省| 罗江县| 柘荣县| 呼图壁县| 道孚县| 浏阳市| 宝山区| 阿克苏市| 三台县| 清水河县| 阿坝县| 沙雅县| 翁源县| 北川| 惠州市| 天气| 德化县| 筠连县| 扶沟县| 阳春市| 福泉市| 北安市| 尤溪县| 高台县| 临漳县| 乌兰浩特市| 垫江县| 仁布县| 江油市| 宁国市| 繁昌县| 湖州市| 客服|