jeudi 25 avril 2019

How to modify an object hash in a template?

How to modify a hash/object value in a template?

eg.

foo-component.js
    settings: { color: "blue", size: 16, ...many others }
foo-template.hbs
    

my-route.hbs
    
        #! Change `settings.color` to "red" before passing to bar !#
        
    

eg. in a hash scenario

foo-template.hbs
    

my-route.hbs
    
        #! Change `settings.color` to "red" before passing to bar !#
        
    




Aucun commentaire:

Enregistrer un commentaire