A
A
Alexey Polyakov2017-06-24 08:03:22
JavaScript
Alexey Polyakov, 2017-06-24 08:03:22

Passing js code or rendering on the server?

I'm thinking of a rather tricky application and would like to plan extensions right away. Naturally, I immediately assume for each user their own composition of applications by mask and I want to either transfer all this goodness in the form of js code for subsequent rendering in the browser exactly what the user is subscribed to or render on the server and transfer ready-made HTML. How would you recommend doing it? Or can describe the basic interface and pass it in json?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
ozknemoy, 2017-06-24
@Stilist

if there are only five applications, then I would not fence the garden and would resolve everything with the help of ngIf, depending on the response from the server. met the compiler ala $compile from the first part but it is not the same as before

V
Vasyl Kovbassa, 2017-06-24
@movasyl

I'm not familiar with Angular, but I think they haven't come up with anything new there.
By JSON and compile on the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question