Created
October 11, 2017 21:22
-
-
Save poteto/f88640bab62390311605981b267484c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import QueryParams from 'ember-parachute'; | |
export const AppQueryParams = new QueryParams({ | |
query: { | |
as: 'q', | |
defaultValue: 'puppy', | |
refresh: true | |
} | |
}); | |
const { Controller, computed: { or } } = Ember; | |
export default Controller.extend(AppQueryParams.Mixin, { | |
queryParamsChanged: or('queryParamsState.{query}.changed') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment