C
C
cimajo2016-12-24 13:11:42
JavaScript
cimajo, 2016-12-24 13:11:42

What are bindings in AngularJS components?

What is the bindings property in AngularJS components? Explain well please, I still can’t understand, it seems to pass data to another component, or is it not?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Gavrilenko, 2016-12-24
@Maddox

Binding - это привязка. Бывает one-way и two-way. Первый передает данные в одну сторону, второй в обе. One-way передает данные на вью и если они изменяются в источнике, то изменятся и во вьюхе. Two-way отслеживает изменения с обоих сторон.

O
ozknemoy, 2016-12-25
@ozknemoy

it's just analogue of scope which in directives
one-way : '<'
interpolation : '@'
and callback in parent : '&'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question