Using It in Templates or Elsewhere

You’ll learn how to use helpers in templates in an Ember application in this lesson.

We'll cover the following

It’s reasonable to argue that our helper seems like a “utility” function. You know, one of those that you’re never quite sure where to place in your perfectly compartmentalized file structure. It would be useful to have access to our capitalize function from the JavaScript code, not just in our templates. It could be handy to apply the proper casing to band names in document titles, for example.

Restructuring the JavaScript module

The solution is to restructure the JavaScript module of our helper. Let’s see:

Get hands-on with 1200+ tech skills courses.