Welcome to the last section of this chapter! You can consider yourself a full stack programmer with strong knowledge on frontend technologies. If you note, the concepts that Aurelia uses to implement the different features are based on common problems that every web application needs to deal with, no matter which framework it is using. Also, as open source tools, the different plugins are based on other tools that actually give support to other framework plugins, such as Angular.
Now, the last feature that we will explain is about computed properties. We can resume it in a single line:
Computed properties are those that are preprocessed on the ViewModel
layer in a JavaScript function.
Let's see a very simple practical use—you are developing a page that shows the ${firstName}
and ${lastName}
as a single value—${completeName}
.
A common solution should create a JavaScript function to concatenate both values and map it into a ViewModel
property. This is...