Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 83bcd9f

Browse files
committed
feat(*): export ANGULAR2_GOOGLE_MAPS_DIRECTIVES
To use the angular2-google-maps directives, you can now import a single constant that includes all released components. import {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from 'angular2_google_maps/angular2_google_maps'; @component({ selector: 'myApp', directives: [ANGULAR2_GOOGLE_MAPS_DIRECTIVES] }) class MyApp {} BREAKING CHANGE: angular2_google_maps/components module renamed to angular2_google_maps/directives
1 parent fea8b9b commit 83bcd9f

File tree

7 files changed

+9
-4
lines changed

7 files changed

+9
-4
lines changed

src/angular2_google_maps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {MapsAPILoader} from './services/maps_api_loader/maps_api_loader';
44
import {LazyMapsAPILoader} from './services/maps_api_loader/lazy_maps_api_loader';
55

66
// main module
7-
export * from './components';
7+
export * from './directives';
88
export * from './services';
99

1010
export const ANGULAR2_GOOGLE_MAPS_PROVIDERS: any[] = [

src/components.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/directives.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export {SebmGoogleMap} from './directives/google_map';
2+
export {SebmGoogleMapMarker} from './directives/google_map_marker';
3+
export {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from './directives_const';
File renamed without changes.

src/directives_const.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import {SebmGoogleMap} from './directives/google_map';
2+
import {SebmGoogleMapMarker} from './directives/google_map_marker';
3+
4+
export const ANGULAR2_GOOGLE_MAPS_DIRECTIVES: any[] = [SebmGoogleMap, SebmGoogleMapMarker];

src/services/marker_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Injectable, Observable} from 'angular2/angular2';
22
import {Observer} from 'rxjs/Observer';
3-
import {SebmGoogleMapMarker} from '../components/google_map_marker';
3+
import {SebmGoogleMapMarker} from '../directives/google_map_marker';
44
import {GoogleMapsAPIWrapper} from './google_maps_api_wrapper';
55

66
@Injectable()

0 commit comments

Comments
 (0)