S
S
Svadbalet2014-04-24 15:04:44
JavaScript
Svadbalet, 2014-04-24 15:04:44

Should I use AngularJS outside of the SPA concept?

Greetings.
I'm going to write a new project and I'm puzzled by the selection of technologies. The project is large, there are many user roles and various complex interfaces (forms, constructors, tables with sorting).
I used to write in KnockoutJS, but it lacks some organization in the code and the constant concern for observable's is annoying.
I saw AngularJS and realized that this is what I am missing.
But. I'm not ready to completely move to the SPA model yet, because:
1. I care about indexing by search engines. I know about pre-render.
2. Different user roles must have different rights. And it is undesirable for one user to know about the add. the possibilities of the other. For example, some additional button in the control interface. Since all templating with SPA will be on the client side, all the logic is additional. rights will also be available to the gaze? How do they act in such situations, make different builds of JS / html templates for different roles? This is the main point, because of which I can not decide on a SPA.
3. For best practices when developing an AngularJS SPA, I went to builtwith.angularjs.org. I tried to look for large working applications (opentaste.eu, zaptravel.com, doubleclick, socialblood.com, etc.). I found that they do not use the SPA model in their projects, and AngularJS is used for the most part for building complex forms, tables and CRUD. The pages themselves are rendered on the server. Am I wrong and took the wrong examples? Where can I find examples of large SPA applications (with custom content) in AngularJS?
Sorry for the long text. The main question is: is it customary to use AngularJS in hybrid applications, where the main data is rendered on the server, and Angular itself is used without routing in order to build parts of complex interfaces (tables and constructors)?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2014-04-24
@Svadbalet

I also once asked a similar question ... In fact, everything is summarized in this question on StackOverflow.
stackoverflow.com/questions/15231251/is-angular-js...
In short, you can.

K
kompi, 2014-04-24
@kompi

I began to replace complex forms with noodles from jquery with angularjs.
It has become much easier.

L
lega, 2014-04-24
@lega

and use Angular itself without routing in order to build parts of complex interfaces

You can try Angular Light , it is "between" Knockout.js and Angular.js, for building "parts of the interface" it can be more convenient.

E
EugeneOZ, 2014-04-28
@EugeneOZ

Since all templating with SPA will be on the client side, all the logic is additional. rights will also be available to the gaze?

ng-if and everything :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question