Simple record

Distinguish the DOM property and HTML attribute

In the world Angular, attribute only role is used to initialize the state of the elements and instructions. When data binding, but in dealing with the property and event elements and instructions, and attribute completely sidelined. (From https://angular.cn/guide/template-syntax#html-attribute-vs-dom-property )

Published 48 original articles · won praise 3 · Views 5158

Guess you like

Origin blog.csdn.net/ydeway/article/details/99292488