jeudi 16 février 2017

where to put template button click event

I have button on my template(not in component) and need to add click event for it.what is the correct js file to place my click event ?

I search from ember site where it state that component action should put in respective component js action or it will bubbule up to route js . Either It have not mansion or I couldn't find where to put template(not in component) action since there are no place to add the action other than respective route js file.

so is it ok to put my template action in respective route js file ?

I am novice to ember and sorry for poor English.




Aucun commentaire:

Enregistrer un commentaire