Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question