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

17. Compose

Matthew Duffield1 
West Linn, Oregon, USA

We have already covered how to create custom elements, but there might be scenarios where you would like your view to be dynamic based on some given criteria. You might find yourself in scenarios where you would like to render specific views based on user interaction. Let’s go with the example that we have a customer view and we want to toggle between a read-only view and an edit view of the customer information. Let’s look at how we would do this. Upon completing this chapter, you will have a good understanding of how compose works in Aurelia and when and where you would ...

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.