grunt-tdevopsui5
Version:
UI5 tools for build/deploy/version managment of ui5 applicaton
30 lines (27 loc) • 816 B
JavaScript
sap.ui.define(['sap/ui/core/UIComponent', 'sap/ui/Device', 'pslint/appid/model/models'], function(
UIComponent,
Device,
models
) {
'use strict';
return UIComponent.extend('pslint.appid.Component', {
metadata: {
manifest: 'json',
},
/**
* The component is initialized by UI5 automatically during the startup of the app and
* calls the init method once.
* @public
* @override
*/
init: function() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// Create connection to addition oData service or do request
// set the device model
this.setModel(models.createDeviceModel(), 'device');
// Router
this.getRouter().initialize();
},
});
});