Skip to content

Instantly share code, notes, and snippets.

@michaelchadwick
Created June 14, 2017 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelchadwick/b2305a156aff13fd8106736ef3f482bb to your computer and use it in GitHub Desktop.
Save michaelchadwick/b2305a156aff13fd8106736ef3f482bb to your computer and use it in GitHub Desktop.
angular 2 testing - AppModule
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