kantianethics kantianethics - 1 year ago 109
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 '*'.

Answer Source

You can use

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


<template bind-ngIf="expr"></template>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download