© Matthew Duffield 2018
Matthew DuffieldPractical App Development with Aurelia https://doi.org/10.1007/978-1-4842-3402-0_18

18. Dynamic Views

Matthew Duffield1 
(1)
West Linn, Oregon, USA
 

We have seen where the compose custom element comes in handy, but there may be scenarios where it would be really nice to serve dynamic views. In this chapter, we will look into how Aurelia has this type of flexibility out of the box. When you have finished this chapter, you should have a firm understanding of how you can employ each of the techniques and when you would want to use them. Let’s get started.

getViewStrategy

We have already covered the view life cycle, but one thing that we left out is the function getViewStrategy. Every view model has the ability to ...

Get Practical App Development with Aurelia: Leverage the Power of Aurelia to Build Personal and Business Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.