A
A
Albert Kazan2018-02-25 22:28:58
JavaScript
Albert Kazan, 2018-02-25 22:28:58

How is replacement implemented in vue/angular...?

I'm interested in what they write in html blocks like {{ variable }} and the value of the variable is already in js.
How does js look up and find those curly braces and select a key from an object with that name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sanych, 2018-02-25
@Farrien

Here's a little sketch just for understanding https://jsfiddle.net/wq3sLnbd/16/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question