- In the @Component definition, we use host to map the host event that we want to work with to the relevant Angular method. In our MapViewComponent, for instance, we used the following component definition to map the window load event to a Loaded method:
@Component({ selector: 'atp-map-view', templateUrl: './map-view.component.html', styleUrls: ['./map-view.component.scss'], host: { '(window:load)' : 'Loaded()' }})
- Latitude and longitude are geographic terms that are used to identify exactly where something is on the planet. Latitude tells us how far north or south something is from the equator, with the equator being 0; a positive number means we are north of the equator, while a negative number means we are going south from the ...