Angular2-dart in non SPA


I would like to use angular2-dart in non-spa as in

loading two components in angular2 non SPA

i.e. in any non-spa page (not just index.html), I would like to have something like


  Static content 

      loading ..

How can this be done using angular2-dart? This will allow to bootstrap arbitrary Angular2-dart component(s) in any non-spa page.


Just call bootstrap() twice in web/main.dart, like this:

void main() {

I just tried it and it works fine.

Answered By – filiph

Answer Checked By – David Marino (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *