# Summer life check-in season#
Today, I recommend a super beautiful Angular PC-side UI component libraryDevUI.
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/b6030675-336e-4ade-9670-f2cae78de470.jpg)
dev-ui A angular.js< /span> developed UI component library. Provides 60+ components, with a star up to 1.6K+.
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/30e0f7d0-760d-4a3b-9530-cee405ffbe74.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/da9b01b5-ad1e-4d5b-921b-9b862fb06baf.jpg)
1. Create project
It is recommended to use@angular/cli to create your project
ng new New-Project
2. Install
Enter your project folder and use npm to install DevUI
npm i ng-devui# Optional, font icon library, some Demos depend on this font library# npm i @devui-design/icons
3. Import module
import { BrowserModule } from '@angular/platform-browser';// Some DevUI components depend on angular animation, The animations module needs to be introduced import { BrowserAnimationsModule } from '@angular/platform-browser/animations';import { NgModule } from '@angular/core';import { DevUIModule } from 'ng-devui';import { AppComponent } from '. /app.component';@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, BrowserAnimationsModule, DevUIModule ], bootstrap: [ AppComponent ],})export class AppModule { }
4. Import style
Introduce the devui style in the angular.json file:
{ "styles": [ ... "node_modules/ng-devui/devui.min.css" ]}
5. Start development and debugging
ng serve --open
Through the above few You can quickly create a simple Angular project and import the component library in just one step.
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/4135859f-c89b-4780-9b0e-ead05fb13e53.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/8c3e01cc-a26b-4466-b329-ec2b758db956.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/aebae60d-80c6-4384-8ca6-f5b4a671ec19.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/696efece-d134-4e8c-b20e-45bde7148921.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/cfbd6201-4827-42f1-aaac-ee183cb6c701.jpg)
![](http://daogezhiyuan-article.oss-cn-beijing.aliyuncs.com/win3000/pic/0ee8fe39-d15e-4c1d-939f-1b91de5d5a0a.jpg)
Provides very beautiful documents and demo examples, you can take a look if you are interested.
// document address https://devui.design/home// warehouse address https://github.com/DevCloudFE/ng-devui
Okay, that's all for today's sharing.
Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/Beautiful%20UI%20component%20library%20based%20on%20Angular.html
评论列表(196条)
测试