fix(angular): change detection

This commit is contained in:
Manu Mtz.-Almeida
2018-04-06 16:19:32 +02:00
parent a3cd5db3a7
commit 79ba6391d6
6 changed files with 60 additions and 51 deletions

View File

@ -1,7 +1,7 @@
import { Directive, ElementRef, HostListener, Input, Optional } from '@angular/core';
import { IonRouterOutlet } from './ion-router-outlet';
import { Router } from '@angular/router';
import { NavController } from '../..';
import { NavController } from '../../providers/nav-controller';
import { IonRouterOutlet } from './ion-router-outlet';
@Directive({
selector: 'ion-back-button'

View File

@ -2,7 +2,7 @@
import { Directive as NgDirective, ElementRef, EventEmitter as NgEventEmitter, Input as NgInput, Output as NgOutput } from '@angular/core';
export function method(ref: ElementRef, methodName: string, ...args: any[]) {
export function method(ref: ElementRef, methodName: string, args: any[]) {
return ref.nativeElement.componentOnReady()
.then((el: any) => el[methodName].apply(el, args));
}
@ -907,8 +907,6 @@ export class Menu {
@NgInput() maxEdgeStart: number;
@NgOutput() ionOpen: NgEventEmitter<any>;
@NgOutput() ionClose: NgEventEmitter<any>;
@NgOutput() ionMenuDidLoad: NgEventEmitter<any>;
@NgOutput() ionMenuDidUnload: NgEventEmitter<any>;
@NgOutput() ionMenuChange: NgEventEmitter<any>;
isOpen(...__args: any[]): Promise<any> {
return method(this.r, isOpen, __args);