0

I want to control ng-hide without having to write dedicated method in controller. Something like:

<div ng-hide="session.filter==''">{{session.filter}}</div>

Is it possible?

1 Answer 1

1

Yes it is and it is easy to verify, just add an E2E test and give it a try, that will be faster than posting a question and waiting for an answer. Plus, you'll improve your testing suite :)

Sign up to request clarification or add additional context in comments.

2 Comments

How will E2E help me to guess the syntax or to guess whether the variant exists at all? ng-hide="session.filter==''" does not work as written.
It should. Are you sure you're setting $scope.session.filter to anything? Could you post the code that sets it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.