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

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.

主站蜘蛛池模板: 桓台县| 瑞昌市| 青冈县| 江津市| 浦城县| 望谟县| 夹江县| 乌兰浩特市| 永定县| 轮台县| 青川县| 综艺| 墨脱县| 徐水县| 旺苍县| 鄯善县| 辰溪县| 滕州市| 萍乡市| 宁强县| 饶河县| 湘西| 木兰县| 贵定县| 斗六市| 科尔| 聂拉木县| 海安县| 定远县| 镇平县| 渝北区| 河源市| 绵竹市| 徐闻县| 三亚市| 佛山市| 清镇市| 凯里市| 乌兰察布市| 固镇县| 安吉县|