JavaScript Loading template not showing in Ember app

I am developing an Ember-cli app with ember 2.1. I created a templates/loading.hbs and several other templates. My foo template has a input that I use to send a queryParam to foo/bar. foo/bar uses the query param to find its model:

export default Ember.Route.extend({
    queryParams: {
        q: {refreshModel: true}
    },

    model: function (params) {
        if (params.q) {
            return this.store.query('client', { q: params.q });
        } else {
            return {};
        }
    }
});

When I go from foo to foo/bar, the model gets loaded and foo/bar gets rendered correctly, but, during the loading time, I don't get the loading template. If I hit refresh in foo/bar, then I see the loading template.

Can you help me to understand this, and how can I make sure I always get the loading template.

Thanks!

Answer:1

I'm using rooms to send a 'private' message to a client and it works however the message being sent is duplicated by the number of clients I have and I believe this is because of my .on('message') ...

I'm using rooms to send a 'private' message to a client and it works however the message being sent is duplicated by the number of clients I have and I believe this is because of my .on('message') ...

Why are there two sets of parenthesis here? return state.filter(({ id }) => { return id !== action.id }); I'm having such a tough time wrapping my head around this one ...

Why are there two sets of parenthesis here? return state.filter(({ id }) => { return id !== action.id }); I'm having such a tough time wrapping my head around this one ...

I have search a lot on Internet, but i did not found any good example for what i am looking. It may be due to i am new in angularjs. What i am looking, I have some common function which i need to ...

I have search a lot on Internet, but i did not found any good example for what i am looking. It may be due to i am new in angularjs. What i am looking, I have some common function which i need to ...

  1. angularjs calling directive function from controller
  2. angularjs calling directive from controller
  3. angularjs calling directive method
  4. angularjs call directive function from outside
  5. angularjs call directive function
  6. angularjs call directive
  7. angularjs call directive on button click
  8. angularjs call directive method from controller
  9. angularjs call directive function from parent controller
  10. angularjs call directive link function from controller
  11. angularjs call directive function from html
  12. angularjs call directive after render
  13. angularjs call directive from javascript
  14. angularjs call directive function from parent
  15. angularjs call directive on load
  16. angularjs call directive from html
  17. angularjs call directive from service
  18. angularjs call directive callback
  19. angularjs directive call controller function with parameters
  20. angularjs directive call function with parameters

So I have this function inside a Component: clickedResultHandler = (embedLink) => { this.setState({embedSrcLink: embedLink}); } this function is called inside a descendant like this: <div ...

So I have this function inside a Component: clickedResultHandler = (embedLink) => { this.setState({embedSrcLink: embedLink}); } this function is called inside a descendant like this: <div ...

  1. different values of r
  2. different values and beliefs
  3. different values in life
  4. different values of a single hue
  5. different values of r gas constant
  6. different values in art
  7. different values of r in chemistry
  8. different values in cultures
  9. different values of i
  10. different values relationship
  11. different values of infinity
  12. different values to have
  13. different values of one color
  14. different values of pi
  15. different values meaning
  16. different values of the same hue
  17. different values in the workplace
  18. different values around the world
  19. different values between generations
  20. different values from parents