Skip to content

Commit

Permalink
fix(router-outlet): mutable prop
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 31, 2018
1 parent 0d44253 commit ff06dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/components/router-outlet/route-outlet.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Element, Method, Prop } from '@stencil/core';
import { transition } from '../../utils';
import { NavDirection } from '../nav/nav-util';
import { AnimationBuilder, Config, FrameworkDelegate, NavOutlet } from '../..';
import { AnimationBuilder, ComponentProps, ComponentRef, Config, FrameworkDelegate, NavOutlet } from '../..';
import { attachComponent, detachComponent } from '../../utils/framework-delegate';
import { RouteID, RouteWrite } from '../router/utils/interfaces';

Expand All @@ -24,7 +24,7 @@ export class RouterOutlet implements NavOutlet {
@Prop({context: 'config'}) config: Config;
@Prop({connect: 'ion-animation-controller'}) animationCtrl: HTMLIonAnimationControllerElement;

@Prop() animated: boolean;
@Prop({ mutable: true }) animated: boolean;
@Prop() animationBuilder: AnimationBuilder;
@Prop() delegate: FrameworkDelegate;

Expand All @@ -39,7 +39,7 @@ export class RouterOutlet implements NavOutlet {
}

@Method()
async setRoot(component: HTMLElement|string, params?: {[key: string]: any}, opts?: RouterOutletOptions): Promise<boolean> {
async setRoot(component: ComponentRef, params?: ComponentProps, opts?: RouterOutletOptions): Promise<boolean> {
if (this.isTransitioning || this.activeComponent === component) {
return false;
}
Expand Down

0 comments on commit ff06dab

Please sign in to comment.