最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Angular學(xué)習(xí)筆記之集成三方UI框架、控件的示例

 更新時(shí)間:2018年03月23日 11:46:18   作者:Wayfreem  
這篇文章主要介紹了Angular學(xué)習(xí)筆記之集成三方UI框架、控件的示例,詳細(xì)的介紹了Material UI、Ag-grid等框架,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文介紹了Angular學(xué)習(xí)筆記之集成三方UI框架、控件的示例,分享給大家,具體如下:

安裝 Material UI 方法:

Material 官網(wǎng):https://material.angular.io

step 1:

npm install --save @angular/material @angular/cdk

step 2:

npm install --save @angular/animations

step 3:

angular.cli 

../node_modules/@angular/material/prebuilt-themes/indigo-pink.css

or

style.css

@import "~@angular/material/prebuilt-themes/indigo-pink.css";

step 4:

index.html

<link  rel="external nofollow" rel="stylesheet">

step 5:

  app.module.ts

  import {MatInputModule, MatCardModule, MatButtonModule} from "@angular/material";
  import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

  imports:[
    BrowserAnimationsModule,
    MatInputModule,
    MatCardModule,
    MatButtonModule,
  ]

安裝 Ag-grid 的方法

Ag-grid 官網(wǎng):https://www.ag-grid.com/

step 1:

npm install --save ag-grid-angular ag-grid

step 2:

angular.cli

"../node_modules/ag-grid/dist/styles/ag-grid.css",
"../node_modules/ag-grid/dist/styles/ag-theme-fresh.css"

step 3:

app.module.ts

imports:[
  AgGridModule.withComponents([])
],
exports:[
  AgGridModule
]

安裝 NG-ZORRO 的方法

NG-ZORRO 官網(wǎng):https://ng.ant.design/version/0.7.x/docs/introduce/zh

step 1:

npm install ng-zorro-antd --save

step 2:

直接用下面的代碼替換 /src/app/app.module.ts 的內(nèi)容

注意:在根 module 中需要使用 NgZorroAntdModule.forRoot(),在子 module 需要使用 NgZorroAntdModule

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 { }

step 3:

修改 .angular-cli.json 文件的 styles 列表

"styles": [
  "../node_modules/ng-zorro-antd/src/ng-zorro-antd.less"
]

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • 如何在Angular2中使用jQuery及其插件的方法

    如何在Angular2中使用jQuery及其插件的方法

    本篇文章主要介紹了如何在Angular2中使用jQuery及其插件的方法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-02-02
  • Angular Cookie 讀寫操作代碼

    Angular Cookie 讀寫操作代碼

    這篇文章主要介紹了Angular Cookie 讀寫操作代碼,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,感興趣的朋友跟隨小編一起看看吧
    2022-01-01
  • Angular 4 指令快速入門教程

    Angular 4 指令快速入門教程

    本篇文章主要介紹了Angular 4 指令快速入門教程,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-06-06
  • Angularjs 手寫日歷的實(shí)現(xiàn)代碼(不用插件)

    Angularjs 手寫日歷的實(shí)現(xiàn)代碼(不用插件)

    本篇文章介紹了Angularjs 手寫日歷的實(shí)現(xiàn)代碼(不用插件),整理了詳細(xì)的代碼,非常具有實(shí)用價(jià)值,需要的朋友可以參考下
    2017-10-10
  • 使用AngularJS2中的指令實(shí)現(xiàn)按鈕的切換效果

    使用AngularJS2中的指令實(shí)現(xiàn)按鈕的切換效果

    這篇文章主要介紹了使用AngularJS2中的指令實(shí)現(xiàn)按鈕的切換效果,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下
    2017-03-03
  • angularjs自定義ng-model標(biāo)簽的屬性

    angularjs自定義ng-model標(biāo)簽的屬性

    這篇文章主要介紹了angularjs自定義ng-model標(biāo)簽的屬性的相關(guān)資料,需要的朋友可以參考下
    2016-01-01
  • AngularJS刪除路由中的#符號的方法

    AngularJS刪除路由中的#符號的方法

    這篇文章主要介紹了AngularJS刪除路由中的#符號的方法的相關(guān)資料,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下
    2016-09-09
  • AngularJS入門教程之表格實(shí)例詳解

    AngularJS入門教程之表格實(shí)例詳解

    本文主要介紹AngularJS 表格,這里給大家整理了相關(guān)知識,并附代碼實(shí)例,有需要的小伙伴可以參考下
    2016-07-07
  • AngularJS 簡單應(yīng)用實(shí)例

    AngularJS 簡單應(yīng)用實(shí)例

    本文主要介紹AngularJS 的簡單應(yīng)用實(shí)例,這里對AngularJS的知識總結(jié),并提供實(shí)例代碼和應(yīng)用程序講解,有需要的小伙伴可以參考下
    2016-07-07
  • angularjs實(shí)現(xiàn)的前端分頁控件示例

    angularjs實(shí)現(xiàn)的前端分頁控件示例

    本篇文章主要介紹了angularjs實(shí)現(xiàn)的前端分頁控件示例,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-02-02

最新評論

呼玛县| 竹溪县| 阜平县| 甘孜县| 嘉鱼县| 铜陵市| 大悟县| 常熟市| 富平县| 东乌珠穆沁旗| 介休市| 汉川市| 和平区| 楚雄市| 平遥县| 长沙县| 咸丰县| 监利县| 安乡县| 平度市| 页游| 洛隆县| 天峻县| 彭泽县| 江永县| 镇安县| 时尚| 四平市| 缙云县| 长沙县| 区。| 钦州市| 永城市| 苗栗县| 逊克县| 延安市| 旌德县| 洞头县| 修水县| 犍为县| 崇文区|