kantianethics kantianethics - 4 months ago 25
AngularJS Question

Alternative name for *ngIf directive

A long time ago Angular 2's docs mentioned an alternate name for

, that didn't use an asterisk. I believe it was something similar to
was some short prefix.

I cannot find any reference to this in the latest docs.

The use case is that the xml parser I am required to use does not support attributes preceded by '*'.


You can use

<template [ngIf]="expr"></template>


<template bind-ngIf="expr"></template>