app.module.ts
977 Bytes
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
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { ViplistComponent } from './viplist/viplist.component';
import {AlertModule} from "ng2-bootstrap";
import {MoyaRestModule} from "moya-angular-common";
import { RouterModule, Routes } from '@angular/router';
import {TestComponent} from "./test/test.component";
const appRoutes: Routes = [
{ path: 'vip/viplist', component: ViplistComponent },
{ path: 'test', component: TestComponent }
];
@NgModule({
declarations: [
AppComponent,
ViplistComponent,
TestComponent,
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
AlertModule.forRoot(),
MoyaRestModule.forRoot() ,
RouterModule.forRoot(appRoutes)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }