Ember 4.5 introduced a long-awaited feature: the ability to use normal JavaScript functions as helpers.
Today, this means two things:
- You can use (bound) methods on your backing class as helpers directly.
- You can define function-based helpers without importing and using
helper()
.
In the future, it will also work extra nicely with the upcoming
feature!
Let's see what each of those looks like.