Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Can I replace a target.url observer?

$
0
0

@chiefsucker wrote:

I have code like this in my application controller:

    // eslint-disable-next-line ember/no-observers
currentPathObserver: observer('target.url', function() {
    this.set('isSearch', false);
}),

The isSearch property is used to show / hide a liquid container. Is there a better way to do this, eventually without an observer?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles