Skip to content

Instantly share code, notes, and snippets.

@heat
Created May 31, 2018 20:09
Show Gist options
  • Save heat/11a27e7fc85915a0389203d28fff5d31 to your computer and use it in GitHub Desktop.
Save heat/11a27e7fc85915a0389203d28fff5d31 to your computer and use it in GitHub Desktop.
como carregar parametros
@@ -1,4 +1,12 @@
Discard Hunk
Stage Hunk
import Ember from 'ember';
export default Ember.Route.extend({
afterModel() {
return this.get('store').query('b/parametro', { orderBy: 'ssupervisor', equalTo: true})
.then( params => {
console.log(params);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment