From 0bbf94c3d8fcaf12bc49e86e1a344f5eb7762cc1 Mon Sep 17 00:00:00 2001
From: Ward Bell declarations
of this module.
<p *myUnless="myExpression">...</p>
The *
symbol turns the current element into an embedded template. Equivalent to:
-<template [myUnless]="myExpression"><p>...</p></template>
<ng-template [myUnless]="myExpression"><p>...</p></ng-template>
<p>Card No.: {{cardNumber | myCardNumberFormatter}}</p>
declarations
of this module.
Turns the li element and its contents into a template, and uses that to instantiate a view for each item in list.
<div [ngSwitch]="conditionExpression">
<template [ngSwitchCase]="case1Exp">...</template>
<template ngSwitchCase="case2LiteralString">...</template>
<template ngSwitchDefault>...</template>
</div>
<div [ngSwitch]="conditionExpression">
<ng-template [ngSwitchCase]="case1Exp">...</ng-template>
<ng-template ngSwitchCase="case2LiteralString">...</ng-template>
<ng-template ngSwitchDefault>...</ng-template>
</div>
Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of conditionExpression
.