Samantha J Samantha J - 3 years ago 90
AngularJS Question

In angular-ui-router can I check for state and a parameter at the same time?

I would like to do something like the following command.'home.auth({content: 'login'})')

It always shows as valid even when I send a different content parameter. Is there a way I can also check for the parameter?

Answer Source

Try it like this:'home.auth', {content: 'login'});

Have a look at the documentation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download