script
tags are not allowed, top level html/body are pointless of course{{userName}}
, {{1 + 1}}
{{post?.category}}
<input #username> {{username.value}}
@ViewChild('username')
private readonly usernameInputRef: ElementRef<HTMLInputElement>;
[attr/prop]
, (event)
, [(two-way)]
[class]
, [class.foo]
,[class]="isOpen ? 'far fa-minus-square' : 'far fa-plus-square'"
,[class]="['pill', 'pill-' + name]"
,[class]="{'hidden': !isVisible, 'expanded': isExpanded}"
[style]
, [style.width.%]
, [style.width.px]
,[style]="getStyle()"
where the function returns a style: Partial<CSSStyleDeclaration> = {}
object[attr.colspan]="colCount"
, [attr.disabled]="!canSubmit"
[ngClass]
, [ngStyle]
= classic directive, 👴 probably will be
deprecated*ngIf
, *ngFor
, *ngSwitch