S
S
Sergey Ganzhela2016-12-23 15:34:11
Angular
Sergey Ganzhela, 2016-12-23 15:34:11

Routing in AngularJs?

Good afternoon people of the forum! If possible please tell me how to do it! There is a page like a landing page, i.e. as the scroll moves, info appears now that everything works due to one request to the side of the backend and (Django) well, that’s not the point there can be something else. while 1.1.x) but even got into a stupor to organize this also with one request or or for each section a separate request and how to make all these requests work immediately when accessing the main url /, if one request is not much different from the usual output using backend template engine. In general, it all came down to how to tell Angular to make all other requests when referring to the main url?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2016-12-23
@healqq

There are several options depending on when you want to get the data:
1. use route.resolve , with this you can wait until all the data is loaded.
2. show some preloaders and send a request directly at the moment when you have already scrolled to this block, for this it is better to break the page into components, and the loading logic can be divided into components.
ps If you haven't written anything in Angular yet, then take the latest version (1.6.x). Version 1.1 is many years old and has not been supported for a long time.

_
_ _, 2016-12-23
@AMar4enko

Landing and getting data with angular? Wave the pen to search engine optimization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question