In an Angular.Dart application, different views can be managed via routes.
How do I read the current route (in a piece of code not related to a view), such as to update the application state if someone copy/pastes an url ? (i.e. the entry point of the application is not the original, default, url)
IMHO his is the default behaviour.
see https://angulardart.org/tutorial/08-ch06-view.html 'Connecting a route to a view'
You can encode parameters in the url and initialize your components using this values (state), no matter if you open the URL using a link in your application or enter it manually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With