IAmYourFaja
IAmYourFaja

Reputation: 56912

How to achieve single page app with multiple views in Dart?

I am migrating from GWT to Dart and would like to take the MVP pattern that I learned from building GWT apps and use them in Dart-land. I'm playing around with my first Dart app and would like it to be a "single-page" app, meaning that the view can change at the drop of a hat without forcing the user to suffer a page load. GWT solves this (in part) with it's Activities & Places API, and I'm wondering if Dart has anything similar.

  1. What does Dart offer developers in the way of creating single-page apps, and if it doesn't, how do other Dart developers achieve single-page apps?

  2. GWT uses codesplitting and fragmentation to minimize the amount of time the application takes to load. Does Dart offer anything like this, or can it be "hacked" to emulate these concepts?

Upvotes: 2

Views: 675

Answers (2)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657406

1) Using Polymer elements as views works fine too.

Upvotes: 0

Alexandre Ardhuin
Alexandre Ardhuin

Reputation: 76223

1) Depending on frameworks there are different ways to do that. For instance angular.dart can handle views and routing. An other solution is the route package.

2) See Mulitple JavaScript files in Dart?

Upvotes: 2

Related Questions