安裝animations
npm install @angular/animations --save
npm install primeng --save
npm install font-awesome --save
打开你的项目中的.angular-cli.json,在“styles”中加入:
"./node_modules/font-awesome/css/font-awesome.min.css",
"./node_modules/primeng/resources/primeng.min.css",
"./node_modules/primeng/resources/themes/omega/theme.css"
在styles.css加入引用
@import '../node_modules/primeng/resources/themes/omega/theme.css';
@import '../node_modules/primeng/resources/primeng.min.css';
@import "../node_modules/font-awesome/css/font-awesome.css";
网友评论