This time I will bring you a detailed explanation of the usage steps of third-party UIframework and controls in Angular, and notes## for the use of third-party UI frameworks and controls in Angular. #What are they? Here are actual cases. Let’s take a look.
Install Material UI method: Material official website:https://material.angular.io
step 1:npm install --save @angular/material @angular/cdk
npm install --save @angular/animations
../node_modules/@angular/material/prebuilt-themes/indigo-pink.css
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="external nofollow" rel="stylesheet">
app.module.ts 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: https ://www.ag-grid.com/step 1:npm install --save ag-grid-angular ag-grid
"../node_modules/ag-grid/dist/styles/ag-grid.css", "../node_modules/ag-grid/dist/styles/ag-theme-fresh.css"
imports:[ AgGridModule.withComponents([]) ], exports:[ AgGridModule ]
How to install NG-ZORRO
NG-ZORRO official website: https://ng.ant.design/ version/0.7.x/docs/introduce/zhstep 1:npm install ng-zorro-antd --save
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 './app.component'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, FormsModule, HttpClientModule, BrowserAnimationsModule, NgZorroAntdModule.forRoot() ], bootstrap: [AppComponent] }) export class AppModule { }
"styles": [ "../node_modules/ng-zorro-antd/src/ng-zorro-antd.less" ]
Detailed explanation of the steps to call Baidu map in Vue
How to use the jointjs attribute in Vue
The above is the detailed content of Detailed explanation of the steps to use third-party UI frameworks and controls in Angular. For more information, please follow other related articles on the PHP Chinese website!