I have a route where the person can select items from a list for their account. But when entering this route ember sends a GET
request to the server. How could I prevent this from happening?
Follow the code snippet. I'm using EmberJS 2x
import Ember from 'ember';
export default Ember.Route.extend({
searchPlaces: Ember.inject.service(),
model() {
return this.store.findAll('user');
},
afterModel(model) {
let token = model.get('token');
let places = model.get('places');
this.set('places', places);
this.set('token', token);
}
});