Skip to content

Commit

Permalink
general stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Mar 25, 2016
1 parent 144356e commit 5e6db1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/LocationComponent/location.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -21,7 +22,7 @@ export class LocationComponent {
this.locations = data;
console.info(this.locations);
},
err => console.err(err)
err => console.error(err)
);
}

Expand Down
2 changes: 0 additions & 2 deletions app/app.component.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion app/services/location.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class LocationService {
}

getLocations() {
return this.http.get('./mock.json')
return this.http.get('mock.json')
.map(res => res.json())
}
}

0 comments on commit 5e6db1c

Please sign in to comment.