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

Best Practice: What helpers might do

$
0
0

@beddu wrote:

Hi everybody,

Ember api reference states:

Ember Helpers are functions that can compute values, and are used in templates. https://emberjs.com/api/ember/release/classes/Helper

Thinking about an issue that look like not to have a direct solution in Ember like the long discussed “long polling”, I had the idea to implement an helper to be placed on the application template that will satisfy my needs asynchronously by means of javascript promises.

That will lead to a solution that is not bare javascript hidden in an external module in vendor folder, but it might consist in a misuse of the Helper class.

What do you people think about it?

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles