S
S
Svyatoslav Khusamov2016-09-02 09:13:08
Angular
Svyatoslav Khusamov, 2016-09-02 09:13:08

Is it possible to use declarative AngularJS to create a complex web application (like VK.com)?

Hello!
It's not clear how to use the declarative approach of AngularJS to create a complex application.
For example, we are in the list of friends. And we want to launch an audio player. The audio player is almost like a standalone application. I would like to do it as a separate application (hereinafter we are talking only about client applications). Is it possible to do this in Angular? From one application to load another?
Further. Is it necessary to create all the layout on the server and transfer it to the browser? Or can I somehow create / delete it on the go? The problem is that it takes up a lot of memory. And as you work in the application, the user will open certain views (lists, tables, forms ...). If they are preloaded from the server, then it will most likely take a lot of memory.
Or is Angular designed to create simple applications? For example, there is a site with many pages. And the owner wanted to turn some pages into mini-applications. For example, on one page I put the OSAGO calculator. Shopping cart on another page. On the third - a table of landing / departure of aircraft flights in online mode.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir, 2016-09-02
@khusamov

https://docs.angularjs.org/guide/component
https://docs.angularjs.org/api/ng/service/$templat...
https://github.com/AngularClass/NG6-starter
https:/ /github.com/rwwagner90/angular-styleguide-es6
https://www.sitepoint.com/writing-angularjs-apps-u...
If the head is in place, you can develop applications of any complexity in 1 angular, or you can second, but be prepared for the fact that even in RC6 there are breaking changes

N
Nicholas, 2016-09-02
@healqq

1. For 1.x, you can make separate modules and load them lazily (requireJs), for 2.x, asynchronous (?) comes out of the box.
2. It is not necessary to create a layout on the server in any case. Angular has great options for heats.
Templates are loaded asynchronously by default (that is, on the first request, Angular pulls html and saves it to its cache until the end of the session).

M
miracul, 2016-09-02
@miracul

If angular is used wisely, then it is suitable for almost any project. I had problems with it only when it was necessary to display large lists of data at once, but in most cases this is either not necessary, or you can do a gradual upload. As for loading templates and other statics, everything is configurable, you can do it gradually or immediately, on request, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question