This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
[2.0] Drop <template [ngIf]="">
syntax from docs & examples #2303
Closed
Description
While working on the NgIf
API docs we first thought about documenting:
<single-root *ngIf=exp>
- `<template [ngIf]=exp>
However this is confusing, we will drop the <template []>
notation from the API docs - note that it will still be supported and there is no plan to remove the support.
The preferred way will be <ng-container *ngIf=exp><root1><root2></ng-container>
The <ng-container>
tag is used to group nodes together and is not stamped out in the resulting DOM. It is not a directive but a special angular construct.
We think that this change will remove some confusion and hard to remember syntax.
Please ping me if you need additional info.
/cc @IgorMinar
Metadata
Metadata
Assignees
Labels
No labels