All files / src/app/extensions/store-locator/shared/stores-map stores-map.component.ts

100% Statements 5/5
75% Branches 3/4
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 192x   2x             2x     1x     1x      
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, ViewChild } from '@angular/core';
 
import { StoreLocatorFacade } from '../../facades/store-locator.facade';
 
@Component({
  selector: 'ish-stores-map',
  templateUrl: './stores-map.component.html',
  changeDetection: ChangeDetectionStrategy.Default,
})
export class StoresMapComponent implements AfterViewInit {
  @ViewChild('mapContainer') mapContainer: ElementRef;
 
  constructor(private storeLocatorFacade: StoreLocatorFacade) {}
 
  ngAfterViewInit() {
    this.storeLocatorFacade.loadMap(this.mapContainer.nativeElement);
  }
}