Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

Benefits of using action rather than pure function?

$
0
0

@rmmmp wrote:

Ever since I saw how actions are just normal functions in Glimmer.js, I dropped placing my actions inside an action object. Now my usage is {{my-component foo=(action myAction)}} instead of {{my-component foo=(action 'myAction').

I haven’t had any problem with this setup so far. Why do we still need action these days? Am I missing out on some benefits if I don’t place it under action object?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles