Skip to content

Commit

Permalink
feat(*): export ANGULAR2_GOOGLE_MAPS_DIRECTIVES
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sebholstein committed Dec 14, 2015
1 parent fea8b9b commit 83bcd9f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/angular2_google_maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {MapsAPILoader} from './services/maps_api_loader/maps_api_loader';
import {LazyMapsAPILoader} from './services/maps_api_loader/lazy_maps_api_loader';

// main module
export * from './components';
export * from './directives';
export * from './services';

export const ANGULAR2_GOOGLE_MAPS_PROVIDERS: any[] = [
Expand Down
2 changes: 0 additions & 2 deletions src/components.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/directives.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export {SebmGoogleMap} from './directives/google_map';
export {SebmGoogleMapMarker} from './directives/google_map_marker';
export {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from './directives_const';
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/directives_const.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {SebmGoogleMap} from './directives/google_map';
import {SebmGoogleMapMarker} from './directives/google_map_marker';

export const ANGULAR2_GOOGLE_MAPS_DIRECTIVES: any[] = [SebmGoogleMap, SebmGoogleMapMarker];
2 changes: 1 addition & 1 deletion src/services/marker_manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Injectable, Observable} from 'angular2/angular2';
import {Observer} from 'rxjs/Observer';
import {SebmGoogleMapMarker} from '../components/google_map_marker';
import {SebmGoogleMapMarker} from '../directives/google_map_marker';
import {GoogleMapsAPIWrapper} from './google_maps_api_wrapper';

@Injectable()
Expand Down

0 comments on commit 83bcd9f

Please sign in to comment.