- Angular UI Development with PrimeNG
- Sudheer Jonna Oleg Varaksin
- 100字
- 2021-07-15 17:32:59
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.

推薦閱讀
- Modular Programming with Python
- 從零開始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- Redis Applied Design Patterns
- 動手玩轉(zhuǎn)Scratch3.0編程:人工智能科創(chuàng)教育指南
- Python自動化運(yùn)維快速入門
- Learn Programming in Python with Cody Jackson
- 現(xiàn)代C++編程實(shí)戰(zhàn):132個核心技巧示例(原書第2版)
- Arduino計(jì)算機(jī)視覺編程
- Android初級應(yīng)用開發(fā)
- Learning Alfresco Web Scripts
- Python深度學(xué)習(xí)(第2版)
- JavaScript高級程序設(shè)計(jì)(第4版)
- Cinder:Begin Creative Coding
- PHP程序設(shè)計(jì)高級教程
- Python自動化運(yùn)維:技術(shù)與最佳實(shí)踐