mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
chore(angular): update proxies
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* auto-generated angular directive proxies */
|
||||
/* tslint:disable */
|
||||
/* auto-generated angular directive proxies */
|
||||
|
||||
import { fromEvent } from 'rxjs';
|
||||
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, ViewEncapsulation } from '@angular/core';
|
||||
|
@ -83,14 +83,14 @@ export class Platform {
|
||||
* | cordova | on a device running Cordova. |
|
||||
* | ios | on a device running iOS. |
|
||||
* | ipad | on an iPad device. |
|
||||
* | iphone | on an iPhone device. |
|
||||
* | iphone | on an iPhone device. |
|
||||
* | phablet | on a phablet device. |
|
||||
* | tablet | on a tablet device. |
|
||||
* | tablet | on a tablet device. |
|
||||
* | electron | in Electron on a desktop device. |
|
||||
* | pwa | as a PWA app. |
|
||||
* | mobile | on a mobile device. |
|
||||
* | desktop | on a desktop device. |
|
||||
* | hybrid | is a cordova or capacitor app. |
|
||||
* | hybrid | is a cordova or capacitor app. |
|
||||
*
|
||||
*/
|
||||
is(platformName: Platforms): boolean {
|
||||
|
@ -8,7 +8,7 @@ export function inputs(instance: any, el: ElementRef, props: string[]) {
|
||||
});
|
||||
}
|
||||
|
||||
export function proxyEvent(emitter: any, el: Node, eventName: string) {
|
||||
export function proxyEvent(emitter: any, el: EventTarget, eventName: string) {
|
||||
el.addEventListener(eventName, (ev) => {
|
||||
emitter.emit(ev);
|
||||
});
|
||||
|
Reference in New Issue
Block a user