src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oBorrowedData) {
				// Attach resolved borrowed data
				this._oControlData.borrowed = oBorrowedData;

				// Pre-process data and create model
				this._bindData(this._sTopicid);

				// Create the sub-view and controller
				this._oView = sap.ui.view({
					height: "100%",
					viewName: "sap.ui.documentation.sdk.view.SubApiDetail",
					type: ViewType.XML,
					async: true,
					preprocessors: {
						xml: {
							models: {
								data: this._oModel
							}
						}
					}
				});

				// Return view loaded promise
				return this._oView.loaded();
			}
function (oBorrowedData) {
				// Attach resolved borrowed data
				this._oControlData.borrowed = oBorrowedData;

				// Pre-process data and create model
				this._bindData(this._sTopicid);

				// Create the sub-view and controller
				this._oView = sap.ui.view({
					height: "100%",
					viewName: "sap.ui.documentation.sdk.view.SubApiDetail",
					type: ViewType.XML,
					async: true,
					preprocessors: {
						xml: {
							models: {
								data: this._oModel
							}
						}
					}
				});

				// Return view loaded promise
				return this._oView.loaded();
			}
function ( oBorrowedData ) { // Attach resolved borrowed data this . _oControlData . borrowed = oBorrowedData ; // Pre-process data and create model this . _bindData ( this . _sTopicid ) ; // Create the sub-view and controller this . _oView = sap . ui . view ( { height : "100%" , viewName : "sap.ui.documentation.sdk.view.SubApiDetail" , type : ViewType . XML , async : true , preprocessors : { xml : { models : { data : this . _oModel } } } } ) ; // Return view loaded promise return this . _oView . loaded ( ) ; }
Create the JSON model and the Sub View. The model will be used in both lifecycle phases of the sub view
by the preprocessor and by the view initiation afterwards.
@param {object} oBorrowedData the data extracted by the borrowed methods promise
@return {Promise} sap.ui.view.loaded promise
@private
Create the JSON model and the Sub View . The model will be used in both lifecycle phases of the sub view by the preprocessor and by the view initiation afterwards .