Skip to content

Instantly share code, notes, and snippets.

@poteto
Created October 11, 2017 21:22
Show Gist options
  • Save poteto/f88640bab62390311605981b267484c7 to your computer and use it in GitHub Desktop.
Save poteto/f88640bab62390311605981b267484c7 to your computer and use it in GitHub Desktop.
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