jeudi 25 août 2016

Dynamically refreshing ember.js page after an action

I have the following in my ember.js controller file:

hello_world.js

actions: {
    setValue: function(x) {
            this.set('value', x);
    }
}

Here is my handlebars file:

hello_word.hbs

<button >
    foo
</button>

Whenever I click the button, it does not update the value until after I refresh the page manually. Is there a way to dynamically refresh the page once the action is performed?




Aucun commentaire:

Enregistrer un commentaire