diff --git a/app/LocationComponent/location.component.ts b/app/LocationComponent/location.component.ts index 00fe99a..b6875f3 100644 --- a/app/LocationComponent/location.component.ts +++ b/app/LocationComponent/location.component.ts @@ -3,7 +3,8 @@ import {RouteParams, Router} from 'angular2/router'; import {LocationService} from '../services/location.service'; @Component({ - templateUrl: './app/locationComponent/template.html' + templateUrl: './app/locationComponent/template.html', + styleUrls: ['./app/locationComponent/style.css'] }) export class LocationComponent { @@ -21,7 +22,7 @@ export class LocationComponent { this.locations = data; console.info(this.locations); }, - err => console.err(err) + err => console.error(err) ); } diff --git a/app/app.component.ts b/app/app.component.ts index 501a380..9d01e64 100644 --- a/app/app.component.ts +++ b/app/app.component.ts @@ -1,9 +1,7 @@ import {Component} from 'angular2/core'; import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; - import {LocationComponent} from './LocationComponent/location.component'; import {UserComponent} from './UserComponent/user.component'; - import {LocationService} from './services/location.service'; @Component({ diff --git a/app/services/location.service.ts b/app/services/location.service.ts index 79b91da..976c468 100644 --- a/app/services/location.service.ts +++ b/app/services/location.service.ts @@ -10,7 +10,7 @@ export class LocationService { } getLocations() { - return this.http.get('./mock.json') + return this.http.get('mock.json') .map(res => res.json()) } }