@ionic/core
Version:
Base components for Ionic
49 lines (45 loc) • 1.45 kB
JavaScript
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import { proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
const RouteRedirect = /*@__PURE__*/ proxyCustomElement(class RouteRedirect extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.ionRouteRedirectChanged = createEvent(this, "ionRouteRedirectChanged", 7);
this.from = undefined;
this.to = undefined;
}
propDidChange() {
this.ionRouteRedirectChanged.emit();
}
connectedCallback() {
this.ionRouteRedirectChanged.emit();
}
static get watchers() { return {
"from": ["propDidChange"],
"to": ["propDidChange"]
}; }
}, [0, "ion-route-redirect", {
"from": [1],
"to": [1]
}, undefined, {
"from": ["propDidChange"],
"to": ["propDidChange"]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["ion-route-redirect"];
components.forEach(tagName => { switch (tagName) {
case "ion-route-redirect":
if (!customElements.get(tagName)) {
customElements.define(tagName, RouteRedirect);
}
break;
} });
}
const IonRouteRedirect = RouteRedirect;
const defineCustomElement = defineCustomElement$1;
export { IonRouteRedirect, defineCustomElement };