web-accessibility icon indicating copy to clipboard operation
web-accessibility copied to clipboard

Attribute binding in Angular

Open netdjw opened this issue 4 years ago • 0 comments

Describe the bug In Angular we use attribute binding, but the plugin doesn't support it.

To Reproduce Steps to reproduce the behavior:

  1. Create a simple angular project
  2. Write this to template: <img [src]="folder.Icon" [alt]="folder.Label"> or this: <img [src]="folder.Icon" [attr.alt]="folder.Label">
  3. See error: Provide an alt text that describes the image, or alt="" if image is purely decorative

Expected behavior I expect to accept and handle both of these definitions as a correct solutions, because these are Angular specific goog practices.

Visual Studio Code (please complete the following information):

  • Version 1.55.2

Additional context This expected behavior expected with any attributes.

netdjw avatar May 04 '21 07:05 netdjw