Skip to content

Instantly share code, notes, and snippets.

@stanusk
Last active March 25, 2018 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stanusk/ed438ae39fd85c3702c204c9e9c3fd87 to your computer and use it in GitHub Desktop.
Save stanusk/ed438ae39fd85c3702c204c9e9c3fd87 to your computer and use it in GitHub Desktop.
<e-tags
*ngIf="something$ | async as something"
class="some-descriptive-class another-descriptive-class"
[tags]="whatever.tags"
[ngClass]="{'conditional-class': aCondition}"
[limit]="42"
[anInput]="imputValue"
[anotherInput]="anotherValue"
(anOutput)="outputListener($event)"
(anotherOutput)="anotherListener($event)"
class="some-forgotten-class"
>
<h3
*ngIf="somethingElse"
aDirective="Some text value for the directive"
[ngClass]="{'conditional-class': aCondition}"
(anotherOutput)="anotherListener($event)"
anotherDirective
>
Some heading
<span
*ngIf="whatever.but.nested"
class="yet-another-class"
>
special
<a
[href]="whatever.but.nested.location"
>
{{whatever.but.nested.valueToDisplay}}
</a>
</span>
text
</h3>
</e-tags>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment