map-alliance/src/app/app.component.ts

13 lines
342 B
TypeScript
Raw Normal View History

2019-07-02 08:11:23 -04:00
import { Component } from '@angular/core';
2019-07-02 08:41:44 -04:00
import {GeolocationService} from "./geolocation/geolocation.service";
2019-07-02 08:11:23 -04:00
@Component({
selector: 'app-root',
2019-07-02 08:41:44 -04:00
templateUrl: 'app.component.html'
2019-07-02 08:11:23 -04:00
})
export class AppComponent {
2019-07-02 08:41:44 -04:00
constructor(private geolocation: GeolocationService) {
geolocation.location.subscribe(pos => console.log(pos));
}
2019-07-02 08:11:23 -04:00
}