Samantha J Samantha J - 2 years ago 81
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.

state.is('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:

state.is('home.auth', {content: 'login'});

Have a look at the documentation.

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