Skip to content

Commit

Permalink
cleanup, remove js and map files
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Mar 24, 2016
1 parent 9a8e93f commit 855b59a
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 209 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules/
.idea
typings
typings

*.js
*js.map
46 changes: 0 additions & 46 deletions app/LocationComponent/location.component.js

This file was deleted.

1 change: 0 additions & 1 deletion app/LocationComponent/location.component.js.map

This file was deleted.

14 changes: 11 additions & 3 deletions app/LocationComponent/location.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {Component} from 'angular2/core';
import {RouteParams, Router} from 'angular2/router';
import {LocationService} from '../services/location.service'

@Component({
template: '<h2>Location</h2>'
Expand All @@ -9,12 +10,19 @@ export class LocationComponent implements OnInit {
location:Location;

constructor(private _router:Router,
private _routeParams:RouteParams) {}
private _routeParams:RouteParams,
private _locationService:LocationService) {

_locationService.locations
.subscribe(
people => this.people = people,
error => console.error('Error: ' + err),
() => console.log('Completed!')
);
}

ngOnInit() {
let id = this._routeParams.get('id');
console.info(id);
//this._service.getHero(id).then(hero => this.hero = hero);
}

}
1 change: 0 additions & 1 deletion app/UserComponent/UserComponent.js

This file was deleted.

1 change: 0 additions & 1 deletion app/UserComponent/UserComponent.js.map

This file was deleted.

46 changes: 0 additions & 46 deletions app/UserComponent/user.component.js

This file was deleted.

1 change: 0 additions & 1 deletion app/UserComponent/user.component.js.map

This file was deleted.

51 changes: 0 additions & 51 deletions app/app.component.js

This file was deleted.

1 change: 0 additions & 1 deletion app/app.component.js.map

This file was deleted.

5 changes: 4 additions & 1 deletion app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ 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({
selector: 'dash',
template: '<router-outlet></router-outlet>',
Expand All @@ -15,4 +17,5 @@ import {UserComponent} from './UserComponent/user.component';
{path: '/user/:id', name: 'User', component: UserComponent},
])

export class AppComponent {}
export class AppComponent {
}
23 changes: 0 additions & 23 deletions app/main.js

This file was deleted.

1 change: 0 additions & 1 deletion app/main.js.map

This file was deleted.

12 changes: 12 additions & 0 deletions app/services/location.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {Injectable} from 'angular2/angular2';
import {Http} from 'angular2/http';

@Injectable()
export class LocationService {

constructor(http:Http) {
this.locations = http.get("http://locator.in.htwg-konstanz.de:2020/locations/nearby?long=9.169753789901733&lat=47.66868204997508&maxDistance=100000000000&limit=1000000000")
.map(response => response.json());
}
}

21 changes: 0 additions & 21 deletions app/services/locationService.js

This file was deleted.

1 change: 0 additions & 1 deletion app/services/locationService.js.map

This file was deleted.

10 changes: 0 additions & 10 deletions app/services/locationService.ts

This file was deleted.

0 comments on commit 855b59a

Please sign in to comment.