import { Component } from '@angular/core'; import { AddressDto, addressProperties } from './modules/office-selector/models/address.dto'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app'; initialCity='Bogota DC'; addresses:Array = new Array(); lat: number = 4.623527; lng: number = -74.06702899999999; constructor(){ this.addresses.push(new AddressDto( new addressProperties(null,'Calle 36 # 7 - 47','BOGOTA, DC','11001','Oficina principal - calle 36 # 7 -47'), null, '000', false )); this.addresses.push(new AddressDto( new addressProperties(null,'Calle 36 # 7 - 47','BOGOTA, DC','11001','Oficina Premium - Calle 36 # 7 -47, Bogotá'), null, '000', false )); this.addresses.push(new AddressDto( new addressProperties(null,'Calle 36 # 7 - 47','BOGOTA, DC','11001','Gerencia Pyme Parque Nacional - Calle 36 # 7 -47, Bogotá'), null, '000', false )); } public searchNear(value){ console.log('search value: '+ value); this.addresses = new Array(); this.addresses.push(new AddressDto( new addressProperties(null,'Calle 36 # 7 - 47','BOGOTA, DC','11001','Oficina principal - calle 36 # 7 -47'), null, '000', false )); this.addresses.push(new AddressDto( new addressProperties(null,'Calle 36 # 7 - 47','BOGOTA, DC','11001','Oficina Premium - Calle 36 # 7 -47, Bogotá'), null, '000', false )); } public selectOffice(value){ console.log('select value: '+ JSON.stringify(value)); } public nextCalled(value){ console.log('button next called with address: ' + JSON.stringify(value)); } }