Samantha J T Star
Samantha J T Star

Reputation: 32818

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?

Upvotes: 1

Views: 24

Answers (1)

ohboy21
ohboy21

Reputation: 4319

Try it like this:

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

Have a look at the documentation.

Upvotes: 3

Related Questions