File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
angular2-rest-service/src/app Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ import { NgModule } from '@angular/core';
44import { FormsModule } from '@angular/forms' ;
55import { HttpModule } from '@angular/http' ;
66import { RouterModule , Routes } from '@angular/router' ;
7- import { AppComponent } from './ app.component ' ;
7+ import { CarsService } from 'app/services/cars.service ' ;
88import { CarsComponent } from './cars/cars.component' ;
99import { CarsListingComponent } from './cars-listing/cars-listing.component' ;
1010import { CarDetailComponent } from './car-detail/car-detail.component' ;
1111
12+ import { AppComponent } from './app.component' ;
13+
1214const carsRoutes : Routes = [
1315 { path : 'cars' ,
1416 component : CarsComponent ,
@@ -33,7 +35,7 @@ const carsRoutes: Routes = [
3335 NgbModule . forRoot ( ) ,
3436 RouterModule . forRoot ( carsRoutes )
3537 ] ,
36- providers : [ ] ,
38+ providers : [ CarsService ] ,
3739 bootstrap : [ AppComponent ]
3840} )
3941export class AppModule { }
You can’t perform that action at this time.
0 commit comments