Created
June 14, 2017 21:11
-
-
Save michaelchadwick/b2305a156aff13fd8106736ef3f482bb to your computer and use it in GitHub Desktop.
angular 2 testing - AppModule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { FormsModule } from '@angular/forms'; | |
import { HttpModule } from '@angular/http'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { AppComponent } from './app.component'; | |
import { DaveService } from './_services/dave.service'; | |
import { HomeComponent } from './home/index'; | |
import { routing } from './app.routing'; | |
import { devlog } from './_helpers/devlog'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
HomeComponent | |
], | |
imports: [ | |
BrowserModule, | |
FormsModule, | |
HttpModule, | |
routing | |
], | |
providers: [ | |
AuthGuard, | |
DaveService, | |
HttpModule, | |
// providers used to create fake backend | |
fakeBackendProvider, | |
MockBackend, | |
BaseRequestOptions | |
], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment