Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Component.js issue with UI5 version 1.26.3

$
0
0

Hi Pinaki,

 

try this

 

  1. sap.ui.core.UIComponent.extend("portal.app.Component", { 
  2.     metadata: { 
  3.         rootView : { 
  4.             viewName: ".portal.app.view.Container"
  5.             type: "JS" 
  6.         }, 
  7.         routing: { 
  8.               config: { 
  9.                 routerClass: "sap.m.routing.Router"
  10.                 viewType: "JS"
  11.                 viewPath: "portal.app.view"
  12.                 controlId: "idContainer"
  13.                 controlAggregation: "pages" 
  14.               }, 
  15.               routes: [ 
  16.                 { 
  17.                   pattern: ""
  18.                   name: "home"
  19.                   viewName: "Home" 
  20.                 }, 
  21.                 { 
  22.                   pattern: "details"
  23.                   name: "details"
  24.                   viewName: "Details" 
  25.                 } 
  26.               ], 
  27.         }, 
  28.     }, 
  29.    portal.app.Component.prototype.init= function () { 
  30.         sap.ui.core.UIComponent.prototype.init.apply(this);
  31. jQuery.sap.require("sap.m.routing.RouteMatchedHandler");
  32. var oRouter = this.getRouter();
  33. this.routeHandler = new sap.m.routing.RouteMatchedHandler(oRouter);
  34. oRouter().initialize(); 
  35.     } 
  36. });


Thanks,

Sonam


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>