mdo/code-guide

add webComponent specific attribute to Attribute Order

rbalet opened this issue · 3 comments

I think the following should be added to the Attribute Order since webcomponent are more and more used. (I'm working with angular, but would make sense for any other framework)

    <custom-component
      [type]="myType"
      [ngSwitch]="condition"
      (myEvent)="onMyEvent()"
      *ngIf="enabled"
    ></custom-component>

I would put those after the data-* one ('data-.+', 'ng-.+', '[.+', '(.+', '*ng+',)

mdo commented

Closing as duplicate-ish of #259.

Closing as duplicate-ish of #239.

@mdo
May have you put the wrong duplicate link '^^

mdo commented

Updated! Sorry :)