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

Best use case for helpers, when should we use it and when should we avoid it?

$
0
0

@Deewendra wrote:

Hi folks, I wanted to get your wisdom on the best use case for helpers - what is the golden rule for when we should be creating helpers vs when we should be avoiding it?

Personally I have created few helpers for: formatting date, concatenating strings and lately I have started creating some helpers that do and/or/not logic which I think are kinda helpful, and its easier to read when they are in my template context for simpler stuff(not more than 3 arguments) - but some of my colleagues disagree and think that those should be thrown in component/controller.

So here I am in a dilemma and I know this is very subjective topic but I just want to know what Ember gurus have to say about it, and quite honestly want to know if I am starting to abuse helpers.

Thanks.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles