UNPKG

gridstack-profile

Version:

TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)

40 lines (36 loc) 1.18 kB
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { AngularNgForTestComponent } from './ngFor'; import { AngularNgForCmdTestComponent } from './ngFor_cmd'; import { AngularSimpleComponent } from './simple'; import { AComponent, BComponent, CComponent } from './dummy.component'; // local testing // import { GridstackModule } from './gridstack.module'; // import { GridstackComponent } from './gridstack.component'; import { GridstackModule, GridstackComponent } from 'gridstack/dist/angular'; @NgModule({ imports: [ BrowserModule, GridstackModule, ], declarations: [ AngularNgForCmdTestComponent, AngularNgForTestComponent, AngularSimpleComponent, AppComponent, AComponent, BComponent, CComponent, ], exports: [ ], providers: [], bootstrap: [AppComponent] }) export class AppModule { constructor() { // register all our dynamic components created in the grid GridstackComponent.addComponentToSelectorType([AComponent, BComponent, CComponent]); } }