mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(angular): change detection
This commit is contained in:
@ -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'
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user