I'm currently developing a custom component within the aureliajs framework and I am injecting an instance of a Router
:
@inject(Router)
export class Pagination {
constructor(router) {
this.router = router;
}
}
This component will be utilized with list view-models to establish basic pagination. In order to achieve this, I need to extract the current page number from an active route which would resemble something like orders/:pageNum
. My question is: how can I accomplish this? I understand that it should most likely be implemented in the Pagination
attached method, but how do I access this :pageNum
parameter?