Skip to content

Commit

Permalink
fix(import): remove deep import too @ionic/angular
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Apr 23, 2020
1 parent 1bf9830 commit ffb9b5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/ionic-router.actions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { UrlTree } from '@angular/router';
import {
NavigationOptions,
AnimationOptions
} from '@ionic/angular/providers/nav-controller';
import { NavigationOptions, AnimationOptions } from './symbols';

export class NavigateRoot {
static readonly type = '[Router] NavigateRoot';
Expand Down
8 changes: 8 additions & 0 deletions src/lib/symbols.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { NavigationExtras } from '@angular/router';

export interface AnimationOptions {
animated?: boolean;
animationDirection?: 'forward' | 'back';
}

export interface NavigationOptions extends NavigationExtras, AnimationOptions {}

0 comments on commit ffb9b5e

Please sign in to comment.