@ionic/angular
Version:
Angular specific wrappers for @ionic/core
46 lines • 2.41 kB
JavaScript
import { __decorate } from "tslib";
/* tslint:disable */
/* auto-generated angular directive proxies */
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
import { ProxyCmp } from './angular-component-lib/utils';
import { defineCustomElement as defineIonImg } from '@ionic/core/components/ion-img.js';
import * as i0 from "@angular/core";
let IonImg = class IonImg {
z;
el;
ionImgWillLoad = new EventEmitter();
ionImgDidLoad = new EventEmitter();
ionError = new EventEmitter();
constructor(c, r, z) {
this.z = z;
c.detach();
this.el = r.nativeElement;
}
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonImg, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: IonImg, isStandalone: true, selector: "ion-img", inputs: { alt: "alt", src: "src" }, outputs: { ionImgWillLoad: "ionImgWillLoad", ionImgDidLoad: "ionImgDidLoad", ionError: "ionError" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
};
IonImg = __decorate([
ProxyCmp({
defineCustomElementFn: defineIonImg,
inputs: ['alt', 'src']
})
], IonImg);
export { IonImg };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonImg, decorators: [{
type: Component,
args: [{
selector: 'ion-img',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['alt', 'src'],
outputs: ['ionImgWillLoad', 'ionImgDidLoad', 'ionError'],
}]
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ionImgWillLoad: [{
type: Output
}], ionImgDidLoad: [{
type: Output
}], ionError: [{
type: Output
}] } });
//# sourceMappingURL=ion-img.js.map