Reputation: 254
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?
ng-show
ng-hide
Upvotes: 3
Views: 1448
Reputation: 35481
Ember components have an isVisible flag that you can use which is the easiest way.
isVisible
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