We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3cd6e4 commit 9298a5dCopy full SHA for 9298a5d
webapp/controller/App.controller.js
@@ -21,6 +21,12 @@ sap.ui.define([
21
// telling what resource the user tried to access...
22
Log.info("Sorry, but the hash '" + sHash + "' is invalid.", "The resource was not found.");
23
});
24
+ oRouter.attachRouteMatched(function (oEvent){
25
+ var sRouteName = oEvent.getParameter("name");
26
+ // do something, i.e. send usage statistics to back end
27
+ // in order to improve our app and the user experience (Build-Measure-Learn cycle)
28
+ Log.info("User accessed route " + sRouteName + ", timestamp = " + new Date().getTime());
29
+ });
30
}
31
32
0 commit comments