M
M
Maxim2020-06-10 09:12:40
Angular
Maxim, 2020-06-10 09:12:40

How to rerender the frontend without passing the view in the body of the response?

I want to understand how you can redraw the frontend without passing the view in the response body?
For example, a button was pressed, some data model came in the form of an object (but not html), and we still have to change the page.
Is this what React and Angular are used for? It's like MVC should be installed on the client and it will listen to events on the client?
Or is it possible to somehow send html as a separate response over another channel, for example, through web sockets where the client constantly listens to the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Glebov, 2020-06-10
@SkiperX

In MVC on the backend, you pass data to the view. And with react or vue, you send data directly to the front through rest, for example. And the routing and template system works at the front.
Angular itself is an mvc framework, it only needs a database, in theory, and a minimum of a backend for authorization, etc.

R
Robur, 2020-06-10
@Robur

Is this what React and Angular are used for?

Yes.
Take any, read the doc, understand, and understand how.
You can also google Ajax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question