import BaseComponent from "<%- app.baseComponent %>"; import { createDeviceModel } from "./model/models"; /** * @namespace <%- app.id %> */ 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(); } }