flpms
flpms

Reputation: 254

How to hide a component like ng-hide in emberjs 2.1?

AngularJS has a ng-show and ng-hide system to show/hide elements in the DOM. What is the best way to achieve something similar in Ember 2.0?

Upvotes: 3

Views: 1448

Answers (1)

nem035
nem035

Reputation: 35481

Ember components have an isVisible flag that you can use which is the easiest way.

You can of course also use css/jQuery or have your own flag that renders or doesn't render the component's content.

Upvotes: 4

Related Questions