- 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.

推薦閱讀
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- Mastering Python Scripting for System Administrators
- 征服RIA
- Flux Architecture
- PostgreSQL Replication(Second Edition)
- 單片機應用與調試項目教程(C語言版)
- 動手學數據結構與算法
- AutoCAD 2009實訓指導
- Mastering Elasticsearch(Second Edition)
- C++ Fundamentals
- SQL Server 2016 從入門到實戰(視頻教學版)
- MyBatis 3源碼深度解析
- 零基礎C#學習筆記
- JavaScript重難點實例精講
- Responsive Web Design with HTML5 and CSS3(Second Edition)