I have a controller, template and route called ‘home’. I have a text input, and button called ‘call’. I created a ‘call’ action on the ‘call’ button.
The user should write a number in the input, then click on the button to run an hear a voice of saying that number.
User writes 132 on the text input, then he presses the ‘call’ button. I wrote some code that run the audio files that will pronounce 132 number.
To write this code, I made many functions. I created those functions inside the ‘home’ controller’.
Are there any best practices to do this in Ember.js?