Files
week-organizer-app/webapp/Component.ts
T
2026-08-10 18:10:28 +02:00

26 lines
609 B
TypeScript

import BaseComponent from "sap/ui/core/UIComponent";
import { createDeviceModel } from "./model/models";
/**
* @namespace de.paulvincenthorn.weekorganizer.weekorganizerapp
*/
export default class Component extends BaseComponent {
public static metadata = {
manifest: "json",
interfaces: [
"sap.ui.core.IAsyncContentCreation"
]
};
public init() : void {
// call the base component's init function
super.init();
// set the device model
this.setModel(createDeviceModel(), "device");
// enable routing
this.getRouter().initialize();
}
}