RafaelVidaurre / angular-permission

Simple route authorization via roles/permissions
MIT License
1.13k stars 212 forks source link

redirectTo default with params or function #408

Closed kishor-shinde closed 7 years ago

kishor-shinde commented 7 years ago

I have one situation where i need to redirect page to a default state which has params so i need to pass params for default. Is it possible or any other way?

oleg-demkovych commented 7 years ago
        redirectTo: 
          canEditAgenda: {
            state: 'dashboard',
            params: {
              paramOne: 'one'
              paramTwo: 'two'
            },
            options: {
              location: false
              reload: true
            }
          }
        }