hana-cli
Version:
HANA Developer Command Line Interface
25 lines (19 loc) • 661 B
JavaScript
/* eslint-disable no-undef */
/*eslint-env es6 */
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"sap/hanacli/common/model/models"
], function (UIComponent, Device, models) {
"use strict"
return UIComponent.extend("sap.hanacli.common.Component", {
superInit() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments)
// enable routing
this.getRouter().initialize()
// set the device model
this.setModel(models.createDeviceModel(), "device")
}
})
})