Angular binding types

Templates render HTML. In a template you can use data, property binding and event binding. This is accomplished with the following syntax:

# – variable declaration

() – event binding

[] – property binding

[()] – two-way property binding

{{ }} – interpolation

* – structural directives

The # syntax can declare local variable names which references DOM objects in a template. e.g.

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.