Skip to content

Commit bc2ee2a

Browse files
committed
refactor(google-maps): remove unnecessary modules
Removes the `GoogleMapModule` and `MapMarkerModule` since they're redundant.
1 parent 7f6972f commit bc2ee2a

File tree

7 files changed

+10
-69
lines changed

7 files changed

+10
-69
lines changed

src/google-maps/google-map/google-map-module.ts

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

src/google-maps/google-map/google-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
import {BehaviorSubject, combineLatest, Observable, Subject} from 'rxjs';
2525
import {map, shareReplay, take, takeUntil} from 'rxjs/operators';
2626

27-
import {MapMarker} from '../map-marker/index';
27+
import {MapMarker} from '../map-marker/map-marker';
2828

2929
interface GoogleMapsWindow extends Window {
3030
google?: typeof google;

src/google-maps/google-map/index.ts

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

src/google-maps/google-maps-module.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@
88

99
import {NgModule} from '@angular/core';
1010

11-
import {MapMarker, MapMarkerModule} from './map-marker/index';
12-
import {GoogleMap, GoogleMapModule} from './google-map/index';
11+
import {MapMarker} from './map-marker/map-marker';
12+
import {GoogleMap} from './google-map/google-map';
13+
14+
const COMPONENTS = [GoogleMap, MapMarker];
1315

1416
@NgModule({
15-
imports: [
16-
GoogleMapModule,
17-
MapMarkerModule,
18-
],
19-
exports: [
20-
GoogleMap,
21-
MapMarker,
22-
],
17+
declarations: COMPONENTS,
18+
exports: COMPONENTS,
2319
})
2420
export class GoogleMapsModule {
2521
}

src/google-maps/map-marker/index.ts

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

src/google-maps/map-marker/map-marker-module.ts

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

src/google-maps/public-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export {GoogleMap} from './google-map/index';
10-
export {MapMarker} from './map-marker/index';
11-
export * from './google-maps-module';
9+
export {GoogleMap} from './google-map/google-map';
10+
export {MapMarker} from './map-marker/map-marker';
11+
export {GoogleMapsModule} from './google-maps-module';

0 commit comments

Comments
 (0)