mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 05:24:57 +08:00
19 lines
447 B
Plaintext
19 lines
447 B
Plaintext
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
<% if (routing) { %>
|
|
import { AppRoutingModule } from './app-routing.module';<% } %>
|
|
import { AppComponent } from './app.component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports: [
|
|
BrowserModule<% if (routing) { %>,
|
|
AppRoutingModule<% } %>
|
|
],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|