diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ff7e5e1..ed4a541 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,16 +1,21 @@ import { NO_ERRORS_SCHEMA, NgModule } from '@angular/core'; import { NativeScriptModule } from '@nativescript/angular'; -import { COMPONENTS, InstallModule } from '../../../demo-snippets/ng/install.module'; +import { InstallModule } from '../../../demo-snippets/ng/install.module'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { MenuComponent } from './menu/menu.component'; +import { SimpleGridComponent } from '@nativescript-community/template-snippet/ng/simple-grid/simple-grid.component'; +import { HorizontalGridComponent } from '@nativescript-community/template-snippet/ng/horizontal-grid/horizontal-grid.component'; +import { SimpleWaterfallComponent } from '@nativescript-community/template-snippet/ng/simple-waterfall/simple-waterfall.component'; +import { SimpleTemplatesComponent } from '@nativescript-community/template-snippet/ng/simple-templates/simple-templates.component'; +import { SwipeMenuComponent } from '@nativescript-community/template-snippet/ng/swipe-menu/swipe-menu.component'; @NgModule({ bootstrap: [AppComponent], imports: [NativeScriptModule, AppRoutingModule, InstallModule], - declarations: [AppComponent, MenuComponent, ...COMPONENTS], + declarations: [AppComponent, MenuComponent, SimpleGridComponent, HorizontalGridComponent, SimpleWaterfallComponent, SimpleTemplatesComponent, SwipeMenuComponent], providers: [], schemas: [NO_ERRORS_SCHEMA] }) diff --git a/src/polyfills.ts b/src/polyfills.ts index 05df962..b63cac7 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -18,3 +18,7 @@ import 'zone.js'; // Add NativeScript specific Zone JS patches import '@nativescript/zone-js'; + +if (typeof queueMicrotask === 'undefined') { + global.queueMicrotask = (cb) => Promise.resolve().then(cb); +}