mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 09:20:12 +01:00
angular updated to rc1
This commit is contained in:
parent
61d86e7e3d
commit
0dfcf86787
53 changed files with 145 additions and 121 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import {Component, ViewEncapsulation, ElementRef} from 'angular2/core';
|
||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
||||
|
||||
@Component({
|
||||
selector: 'leaflet-maps',
|
||||
|
|
@ -18,7 +17,7 @@ export class LeafletMaps {
|
|||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
let el = DOM.querySelector(this._elementRef.nativeElement, '.leaflet-maps');
|
||||
let el = this._elementRef.nativeElement.querySelector('.leaflet-maps');
|
||||
|
||||
L.Icon.Default.imagePath = 'assets/img/theme/vendor/leaflet';
|
||||
var map = L.map(el).setView([51.505, -0.09], 13);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue