plugin provider clean up

This commit is contained in:
nixa 2016-05-17 18:26:49 +03:00
parent 31c7843ab5
commit 491a185cb3
10 changed files with 18 additions and 18 deletions

View file

@ -1,5 +1,6 @@
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
import {Component, ElementRef} from '@angular/core';
import {BaCard} from '../../../../theme/components';
import {GoogleMapsLoader} from './googleMaps.loader';
@Component({
selector: 'google-maps',

View file

@ -0,0 +1 @@
export const GoogleMapsLoader = require('google-maps');

View file

@ -1,13 +1,14 @@
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
import {BaCard} from '../../../../theme/components';
import './leafletMaps.loader';
@Component({
selector: 'leaflet-maps',
pipes: [],
providers: [],
// otherwise maps won't work
encapsulation: ViewEncapsulation.None,
styles: [require('leaflet/dist/leaflet.css'), require('./leafletMaps.scss')],
styles: [require('./leafletMaps.scss')],
directives: [BaCard],
template: require('./leafletMaps.html'),
})

View file

@ -0,0 +1,2 @@
require('leaflet-map');
require('style-loader!leaflet/dist/leaflet.css');