Attribute binding, similar to property binding allows you to set a value to an HTML attribute using square brackets [ ].
Instead of passing the attribute name to the brackets, you need to use the attr prefix.
For example, the attribute aria-label can be set using [attr.aria-label].
-----------------------------
📍 Source code: https://github.com/etrupja/angular-mo...
-----------------------------
📣 Blog: https://dotnethow.net
📣 Udemy: https://www.udemy.com/user/ervis-trupja/
📣 Pluralsight: https://www.pluralsight.com/authors/e...
📣 LinkedIn: / ervis-trupja
-----------------------------
#angular #webdeveloper #dotnethow
On this page of the site you can watch the video online 17. Attribute Binding in Angular with a duration of hours minute second in good quality, which was uploaded by the user Ervis Trupja 05 August 2022, share the link with friends and acquaintances, this video has already been watched 2,258 times on youtube and it was liked by 20 viewers. Enjoy your viewing!