Is AngularJS useful for multi-page applications

I read about the basics of AngularJS and wanted to use the anchor function on my pages. Thus, I can determine the data that can be shown in the field of view, can make changes to the data so that they are changed without any problems.

In all the examples I read, it starts with a template that acts like a skeleton for presentation, and a controller that retrieves / updates the data so that it is reflected in the field of view.

I doubt if I can use this for a multi-page application. If my application includes different pages, each of which has a different structure and purpose, is AngularJS a good option for me?

+4
source share
5 answers

To achieve a better user experience and / or to meet expectations and requirements, we develop single-page applications and we make fewer multi-page applications. When doing SPA, Angular helps you develop testable code and helps scale your development efforts along with other benefits.

If your application, by its nature, has multiple pages, you can still use Angular for the pages that you need to write client-side JavaScript code that you like to put in the MVC framework.

Since you can have multiple views and controllers on the same page, Angular can be used to create a multi-page effect if the pages are somehow related to the steps of the wizard.

Angular JavaScript MVC Framework , , . , , Angular.

AngularJS , , .

+1

ya angularJs , . , factory ..

+1

, AngularJS . ng-view . angular.

0

AngularJS - , , .. , AngularJS , - , : .

- , . angular (https://github.com/angular-ui/ui-router).

-1

ui-router, -, . , .

-1

All Articles