@Mohana_Priya wrote:
I have a custom helper named comt-helper which accepts 2 params and returns a boolean. This helper determines which template to be used based on the parameters.
{{#if (comt-helper commentsActivity commentType)}} {{partial “comments/empty”}} {{else}} {{partial “comments/view”}} {{/if}}
Initially comt-helper returns true (computed with commentsActivity and commentType) and “comments/empty” partial is rendered. Later I modify commentsActivity and the helper fails to recalculate with the modified object and still the same template is rendered. I want my custom helper to behave like built-in ember helpers (if, unless, each - recalculates with the modified object). Looking out for suggestions …
Posts: 4
Participants: 2