This article introduces an example of the integrated three-party UI framework and controls of Angular learning notes. It is shared with you. The details are as follows:
How to install Material UI:
Material official website:
step 1:
npm install --save @angular/material @angular/cdk
step 2:
npm install --save @angular/animations
step 3:
../node_modules/@angular/material/prebuilt-themes/
or
@import "~@angular/material/prebuilt-themes/";
step 4:
<link href="/icon?family=Material+Icons" rel="external nofollow" rel="stylesheet">
step 5:
import {MatInputModule, MatCardModule, MatButtonModule} from "@angular/material"; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; imports:[ BrowserAnimationsModule, MatInputModule, MatCardModule, MatButtonModule, ]
How to install Ag-grid
Ag-grid official website:/
step 1:
npm install --save ag-grid-angular ag-grid
step 2:
"../node_modules/ag-grid/dist/styles/", "../node_modules/ag-grid/dist/styles/"
step 3:
imports:[ ([]) ], exports:[ AgGridModule ]
How to install NG-ZORRO
NG-ZORRO official website:/version/0./docs/introduce/zh
step 1:
npm install ng-zorro-antd --save
step 2:
Directly replace the content of /src/app/ with the following code
Note: () is required in the root module, and NgZorroAntdModule is required in the child module.
import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { NgZorroAntdModule } from 'ng-zorro-antd'; import { AppComponent } from './'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, FormsModule, HttpClientModule, BrowserAnimationsModule, () ], bootstrap: [AppComponent] }) export class AppModule { }
step 3:
Modify the styles list of . files
"styles": [ "../node_modules/ng-zorro-antd/src/" ]
The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.