forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathapp.browser.module.ts
More file actions
39 lines (36 loc) · 1.04 KB
/
app.browser.module.ts
File metadata and controls
39 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* This file and `main.node.ts` are identical, at the moment(!)
* By splitting these, you're able to create logic, imports, etc that are "Platform" specific.
* If you want your code to be completely Universal and don't need that
* You can also just have 1 file, that is imported into both
* client.ts and server.ts
*/
import { NgModule } from '@angular/core';
import { UniversalModule } from 'angular2-universal';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './index';
// import { RouterModule } from '@angular/router';
// import { appRoutes } from './app/app.routing';
/**
* Top-level NgModule "container"
*/
@NgModule({
/** Root App Component */
bootstrap: [ AppComponent ],
/** Our Components */
declarations: [ AppComponent ],
imports: [
/**
* NOTE: Needs to be your first import (!)
* BrowserModule, HttpModule, and JsonpModule are included
*/
UniversalModule,
FormsModule
/**
* using routes
*/
// RouterModule.forRoot(appRoutes)
]
})
export class AppModule {
}