Skip to content

Commit

Permalink
RFC #324 : Deprecate Component#isVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinJoyce committed Oct 17, 2019
1 parent 9f05034 commit 372b1ac
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/ember/v3/component-is-visible.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
id: ember-component.is-visible
title: Deprecate `Commponent#isVisible`
until: '4.0.0'
since: '3.15'
---

We are deprecating usage of the `isVisible` in classic components in accordance with [RFC #324](https://github.com/emberjs/rfcs/blob/master/text/0324-deprecate-component-isvisible.md).

Instead of setting thee `isVisible` property on classic components, consider either using a wrapping `{{#if}}` or the [`hidden` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden:

```hbs
{{! wrapping `if` }}
{{#if this.showComponent}}
<MyComponent />
{{/if}}
{{! hidden attribute }}
<div hidden={{this.isHidden}}></div>
```

0 comments on commit 372b1ac

Please sign in to comment.