src/sap.ui.documentation/src/sap/ui/documentation/sdk/Component.js
function () {

				this._oErrorHandler = new ErrorHandler(this);

				// set the device model
				this.setModel(models.createDeviceModel(), "device");

				// set the global libs data
				this.setModel(new JSONModel(), "libsData");

				// set the global version data
				this.setModel(new JSONModel(), "versionData");

				// call the base component's init function and create the App view
				UIComponent.prototype.init.apply(this, arguments);

				// Load VersionInfo model promise
				this.loadVersionInfo();

				// create the views based on the url/hash
				this.getRouter().initialize();
			}
function () {

				this._oErrorHandler = new ErrorHandler(this);

				// set the device model
				this.setModel(models.createDeviceModel(), "device");

				// set the global libs data
				this.setModel(new JSONModel(), "libsData");

				// set the global version data
				this.setModel(new JSONModel(), "versionData");

				// call the base component's init function and create the App view
				UIComponent.prototype.init.apply(this, arguments);

				// Load VersionInfo model promise
				this.loadVersionInfo();

				// create the views based on the url/hash
				this.getRouter().initialize();
			}
function ( ) { this . _oErrorHandler = new ErrorHandler ( this ) ; // set the device model this . setModel ( models . createDeviceModel ( ) , "device" ) ; // set the global libs data this . setModel ( new JSONModel ( ) , "libsData" ) ; // set the global version data this . setModel ( new JSONModel ( ) , "versionData" ) ; // call the base component's init function and create the App view UIComponent . prototype . init . apply ( this , arguments ) ; // Load VersionInfo model promise this . loadVersionInfo ( ) ; // create the views based on the url/hash this . getRouter ( ) . initialize ( ) ; }
The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
In this method, the device models are set and the router is initialized.
@public
@override
The component is initialized by UI5 automatically during the startup of the app and calls the init method once . In this method the device models are set and the router is initialized .