Hans 3886aab55b feat(@schematics/angular): add a --experimental-ivy flag to ng-new
This will create a new Ivy-enabled application. Also available in "ng g application".
2018-08-09 19:37:53 -04:00

19 lines
483 B
TypeScript

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
<% if (routing) { %>
import { AppRoutingModule } from './app-routing.module';<% } %>
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [<% if (!experimentalIvy) { %>
BrowserModule<% if (routing) { %>,
AppRoutingModule<% } %>
<% } %>],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }