Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Use this working example
- .state('email-manage-filter', {
- url: '/email-manage', // use this url in email
- redirectTo: () => ({state: 'corrective-action-manage', params: { filterOverdue: 'Passed In'}})
- })
- // this is the actual manage page with the email parameters passed in
- .state('corrective-action-manage', {
- url: '/corrective-action/manage/:pageNumber',
- component: 'correctiveActionManage',
- cache: false,
- params: { status: null, pageNumber: null, filterOverdue: null}
- });
- // Example of full Route
- .state('corrective-action-manage-overdue', {
- url: '/corrective-action-manage-overdue',
- template: '<div><p>{{filterOverdue}}</p></div>',
- controller: class TestController {
- constructor(private $stateParams, private $scope) {
- }
- $onInit() {
- this.$scope.filterOverdue = this.$stateParams.filterOverdue;
- }
- },
- params: { filterOverdue: 'filterOverdue filter' }
- })
Add Comment
Please, Sign In to add comment