-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(): fix for lazy loaded apps (#10)
* feat: allow lazy loading with previous animation import * feat: export child module from separate file * fix: remove child export from index file * chore: clean up lint errors
- Loading branch information
Showing
2 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IonicModule } from 'ionic-angular'; | ||
import { Tooltip } from './tooltip.directive'; | ||
import { TooltipBox } from './tooltip-box.component'; | ||
|
||
export const childArgs: NgModule = { | ||
entryComponents: [ | ||
TooltipBox | ||
], | ||
declarations: [ | ||
Tooltip, | ||
TooltipBox, | ||
], | ||
imports: [ | ||
IonicModule | ||
], | ||
exports: [ | ||
Tooltip | ||
] | ||
}; | ||
|
||
@NgModule(childArgs) | ||
export class TooltipsChildModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
import { childArgs } from './tooltips.child.module'; | ||
import { NgModule } from '@angular/core'; | ||
import { IonicModule } from 'ionic-angular'; | ||
import { Tooltip } from './tooltip.directive'; | ||
import { TooltipBox } from './tooltip-box.component'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
@NgModule({ | ||
entryComponents: [ | ||
TooltipBox | ||
], | ||
declarations: [ | ||
Tooltip, | ||
TooltipBox, | ||
], | ||
imports: [ | ||
IonicModule, | ||
BrowserAnimationsModule | ||
], | ||
exports: [ | ||
Tooltip | ||
] | ||
}) | ||
const rootArgs: NgModule = Object.assign({}, childArgs); | ||
rootArgs.imports.push(BrowserAnimationsModule); | ||
|
||
@NgModule(rootArgs) | ||
export class TooltipsModule {} |