alflennik / au7

Aurelia Framework7: A Lightweight Mobile App Platform
140 stars 10 forks source link

Aurelia native router #3

Open Scapal opened 7 years ago

Scapal commented 7 years ago

Hi Alexander,

A while ago, working with F7 and Aurelia, I made an iOS like navigation-view controller for Aurelia. It is not using the default Aurelia routing system nor F7 one, you create new views on the fly and caches the previous views on a stack. It avoids you to create all the views from the start, you can create multiple instances of a view with different content so I can fit complex workflows with circular view references.

If interested, take a look at my Gist repo: https://gist.github.com/Scapal/20518b932c4c8e3c1940 https://gist.github.com/Scapal/27e46dd56fb48f5b02aa725ac04b26ca

I was not 100% happy with the css based animations as it introduces some bugs (i.e.. don't click on a button during the animation).

alflennik commented 7 years ago

Thanks for sharing, I'll check it out!