V
V
vladstoin2016-07-22 18:02:56
Angular
vladstoin, 2016-07-22 18:02:56

Frontend framework - how to add views and not overwrite?

Hello!
a task appeared so that when clicking on links, the page would not be updated, and the requested information would appear in blocks in main, or rather be added to existing ones.
clicked on a specific link /heroes, added to main (or body) ,
then clicked on another link/button, the page was added to the previous section in a block (prepend or append)
Started learning angular2, can a router do this?
or tell me in which framework such a function can be most easily done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zolotykh, 2016-07-22
@vladstoin

For the described task, a framework is not needed, otherwise you are trying to use it not for its intended purpose, but vice versa.
Catch the click event on the link, load its content with Ajax and insert the appendome into the desired element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question