mercredi 16 septembre 2015

The logic that is related to controller … the template won’t need it as property

I have a logic for a controller called "home". I split it up many functions. Those functions are just for a specific purpose related to some logic.

A user will click on a button, then an action will be executed in the controller, then all logic is done with the help multiple functions. Right now, I made those functions as a controller properties.

Are there any best practices to do this in Ember.js?




Aucun commentaire:

Enregistrer un commentaire