Skip to Content
May 20, 2016 at 02:55 PM

The difference between attachMatched & attachPatternMatched method in sap.ui.core.routing.Route


Hi all,

I started to learn sapui5 one month ago and am now developing a simple web application. when dealing with routing, I noticed that some are using Router.getRoute("patternname").attachMatched(this._onRouteMatched, this) and others are using Router.getRoute("patternname").attachPatternMatched(this._routePatternMatched, this). Therefore, is there any difference between attachMatched & attachPatternMatched method? Moreover, though I checked the API, I can't see any explicit difference between them.

Do you have any idea? Thank you in advance.

Best regards,