import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; import { FormatterService } from '@core/formatter.service' ; /**
 * Shared coordinates component, simple coordinates to get/set for use in
 * shared components
 */ @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'shared-coordinates' , styleUrls : [ './coordinates.component.scss' ] , templateUrl : './coordinates.component.html' } ) export class CoordinatesComponent { _latitude : number ; _longitude : number ; constructor ( public formatter ) { } param value @ Input ( ) set latitude ( value ) { this . _latitude = parseFloat ( value ) ; } returns { number } get latitude ( ) { return this . _latitude ; } param value @ Input ( ) set longitude ( value ) { this . _longitude = parseFloat ( value ) ; } returns { number } get longitude ( ) { return this . _longitude ; } }