code: function () {
  				this.getRouter().getRoute("sample").attachPatternMatched(this._onSampleMatched, this);
  
  				this._viewModel = new JSONModel({
  					showNavButton : true,
  					showNewTab: false
  				});
  
  				this._sId = null; // Used to hold sample ID
  				this._sEntityId = null; // Used to hold entity ID for the sample currently shown
  
  				// Load runtime authoring asynchronously
  				Promise.all([
  					sap.ui.getCore().loadLibrary("sap.ui.fl", {async: true}),
  					sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
  				]).then(this._loadRTA.bind(this));
  
  				this.getView().setModel(this._viewModel);
  			}
docs: /* =========================================================== /* lifecycle methods /* ===========================================================