Binding custom behaviors to our application
Let's continue with our Aurelia special features exploration. In the last section, we saw value-converters, and it's impossible to not make a relationship between this feature and the binding engine of Aurelia framework. Maybe you think that both features have much in common, well, not so much really. Let's start explaining how the binding engine works.
The view resources in Aurelia framework can be divided into four categories:
- Value converters
- Custom attributes
- Custom elements
- Binding behaviors
We will focus only on the last one. It's not because the others are less important but because it will be better for us to understand how this works first and then explore the other categories. Don't worry, value-converters are already covered, and you will have a clearer idea about the difference between both features.
The value-converter acts just as a bridge interceptor between View
and ViewModel
(or vice versa). The binding behavior goes beyond—it has full...