LaVOZs

The World’s Largest Online Community for Developers

'; javascript - how to know if the particular HTML attribute has the DOM property or not? - LavOzs.Com

In Angular 2, Interpolation works with properties and events but for ATTRIBUTES we have to use 'attr' keyword for attribute binding. So, How to know if the particular HTML attribute has the DOM property or not?

In other words how to know for which element we have to use attr keyword?

Related
What are valid values for the id attribute in HTML?
Event binding on dynamically created elements?
How do I remove a property from a JavaScript object?
How to find event listeners on a DOM node when debugging or from the JavaScript code?
How do I find out which DOM element has the focus?
How can I know which radio button is selected via jQuery?
How can I select an element by name with jQuery?
How can I set the default value for an HTML <select> element?
How do I remove a particular element from an array in JavaScript?
How does data binding work in AngularJS?