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
|
|
|
}
|