import BaseComponent from "<%- app.baseComponent %>"; import { createDeviceModel } from "./model/models"; /** * @namespace <%- app.id %> */ export default class Component extends BaseComponent { public static metadata = { manifest: "json" }; /** * The component is initialized by UI5 automatically during the startup of the app and calls the init method once. * @public * @override */ public init() : void { // call the base component's init function super.init(); // enable routing this.getRouter().initialize(); // set the device model this.setModel(createDeviceModel(), "device"); } }