From 5e6db1cb32668e92ac7f5b5ad7c498afc99f1052 Mon Sep 17 00:00:00 2001 From: Michael Knoch Date: Fri, 25 Mar 2016 02:35:35 +0100 Subject: [PATCH] general stuff --- app/LocationComponent/location.component.ts | 5 +++-- app/app.component.ts | 2 -- app/services/location.service.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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()) } }