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 )