在命令行中安装DevExtreme和Angular CLI:
npm install -g devextreme-cli
npm install -g @angular/cli
创建一个新的Angular项目:
ng new my-angular-app
在安装了DevExtreme的项目中配置DevExtreme主题:
dxt theme my-theme dx.light.css
将DevExtreme的模块导入到您的应用程序模块中:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DxButtonModule, DxDataGridModule } from 'devextreme-angular';
import { AppComponent } from './app.component';
@NgModule({
imports: [ BrowserModule, DxButtonModule, DxDataGridModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
在您的应用程序中使用DevExtreme组件:
构建并运行您的应用程序:
ng build
ng serve
上一篇:Addingdecorate_annotationtoverticaljoinedupsetplotswithinComplexHeatmappackage
下一篇:Addingdistribution-specificfunctionstoscipy.stats.rv_frozen