I need a little help. I’m fairly familiar with Aurelia, but not a complete expert. In our app, we have a couple of master/detail pages with a layoutView:
property in the route. The layout view is then defined as:
<template>
<require from="./list-details.css"></require>
<slot name="pageTitle"></slot>
<div class="list-details">
<div class="actions">
<slot name="actions"></slot>
</div>
<div class="list">
<slot name="list"></slot>
</div>
<div class="details">
<slot name="details"></slot>
</div>
</div>
</template>
And the view is defined as:
<template>
<page-title slot="pageTitle">
<action-button slot="actions">
<div slot="list">
<!-- stuff to generate list -->
</div>
<div slot="details">
<compose view="./details.html"></compose>
</div>
</template>
This layout is not very friendly on a mobile device and what we’d like to do is to present the list as a page, and the details as a separate navigable page. This would be akin to how the iOS UISplitView works between the iPad and an iPhone.
I’m really looking for the best way to be able to switch between a full list/details page to a list page > details page model dynamically. Another way to think about this problem is that we need to restructure the layout and add dynamic routes.