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

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.

主站蜘蛛池模板: 格尔木市| 平罗县| 靖宇县| 滁州市| 根河市| 如皋市| 桐庐县| 和平县| 青海省| 三穗县| 资溪县| 鄂尔多斯市| 石柱| 若羌县| 合江县| 邹城市| 兴隆县| 安阳县| 曲阳县| 安达市| 石嘴山市| 哈尔滨市| 来凤县| 罗田县| 都匀市| 甘孜县| 吴堡县| 凤城市| 合肥市| 金湖县| 泊头市| 江安县| 临湘市| 米易县| 武鸣县| 巴东县| 阜南县| 二连浩特市| 太原市| 柏乡县| 巴中市|