How can I use Angular 2 on top of my MVC app?

Discussão em 'Angular' iniciado por user2818430, Outubro 24, 2024.

  1. user2818430

    user2818430 Guest

    With AngularJS I could define my app in the body like this: <body ng-app="myapp"> Then I could load different controllers in different views within my MVC app.

    Let's say in Home/Index view I will load one controller and and Home/About i could load a different one and do different logic.

    I am trying to understand Angular 2 and I have a feeling that all you can do with it is a SPA? Are you kidding me? If I don't want to build a SPA basically I have to duplicate my code and create angular app again and again for each view. Is this true that you have to build only SPAs?

    How can I use Angular 2 on top of my MVC app, using all MVC functionalities like routing, etc.?

    Continue reading...

Compartilhe esta Página