26 lines
609 B
TypeScript
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();
|
|
}
|
|
} |