Hi!
I'm implementing a function that will be used as callback for several routes in my SPA. My challenge now is that I don't know how to get the route definition inside the function. For example:
var callback = function(){
///How to get the according route definition? For instance: "/login", "/main", "/items/:category/:id"
}
router.route("/login", callback);
router.route("/main", callback);
router.route("/items/:category/:id", callback);
Does the Kendo API provide a way to get that information?
Thanks.
I'm implementing a function that will be used as callback for several routes in my SPA. My challenge now is that I don't know how to get the route definition inside the function. For example:
var callback = function(){
///How to get the according route definition? For instance: "/login", "/main", "/items/:category/:id"
}
router.route("/login", callback);
router.route("/main", callback);
router.route("/items/:category/:id", callback);
Does the Kendo API provide a way to get that information?
Thanks.