mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix deprecation message on ngIf/ngSwitch (#62149)
fixes #62147 PR Close #62149
This commit is contained in:
committed by
Jessica Janiuk
parent
f1b8ac6150
commit
4f0126e76a
@@ -158,7 +158,7 @@ import {RuntimeErrorCode} from '../errors';
|
||||
* @publicApi
|
||||
*
|
||||
* @deprecated 20.0
|
||||
* Use the @if block instead. Intent to remove in v22
|
||||
* Use the `@if` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[ngIf]',
|
||||
@@ -179,7 +179,7 @@ export class NgIf<T = unknown> {
|
||||
|
||||
/**
|
||||
* The Boolean expression to evaluate as the condition for showing a template.
|
||||
* @deprecated Use the @if block instead. Intent to remove in v22
|
||||
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Input()
|
||||
set ngIf(condition: T) {
|
||||
@@ -189,7 +189,7 @@ export class NgIf<T = unknown> {
|
||||
|
||||
/**
|
||||
* A template to show if the condition expression evaluates to true.
|
||||
* @deprecated Use the @if block instead. Intent to remove in v22
|
||||
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Input()
|
||||
set ngIfThen(templateRef: TemplateRef<NgIfContext<T>> | null) {
|
||||
@@ -201,7 +201,7 @@ export class NgIf<T = unknown> {
|
||||
|
||||
/**
|
||||
* A template to show if the condition expression evaluates to false.
|
||||
* @deprecated Use the @if block instead. Intent to remove in v22
|
||||
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Input()
|
||||
set ngIfElse(templateRef: TemplateRef<NgIfContext<T>> | null) {
|
||||
|
||||
@@ -112,7 +112,7 @@ export class SwitchView {
|
||||
* @see [Structural Directives](guide/directives/structural-directives)
|
||||
*
|
||||
* @deprecated 20.0
|
||||
* Use the @switch block instead. Intent to remove in v22
|
||||
* Use the `@switch` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[ngSwitch]',
|
||||
@@ -125,7 +125,7 @@ export class NgSwitch {
|
||||
private _lastCasesMatched = false;
|
||||
private _ngSwitch: any;
|
||||
|
||||
/** @deprecated Use the @switch block instead. Intent to remove in v22 */
|
||||
/** @deprecated Use the `@switch` block instead. Intent to remove in v22 */
|
||||
@Input()
|
||||
set ngSwitch(newValue: any) {
|
||||
this._ngSwitch = newValue;
|
||||
@@ -200,7 +200,7 @@ export class NgSwitch {
|
||||
* @see {@link NgSwitchDefault}
|
||||
*
|
||||
* @deprecated 20.0
|
||||
* Use the @case block within a @switch block instead. Intent to remove in v22
|
||||
* Use the `@case` block within a `@switch` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[ngSwitchCase]',
|
||||
@@ -209,7 +209,7 @@ export class NgSwitchCase implements DoCheck {
|
||||
private _view: SwitchView;
|
||||
/**
|
||||
* Stores the HTML template to be selected on match.
|
||||
* @deprecated Use the @case block within a @switch block instead. Intent to remove in v22
|
||||
* @deprecated Use the `@case` block within a `@switch` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Input() ngSwitchCase: any;
|
||||
|
||||
@@ -249,7 +249,7 @@ export class NgSwitchCase implements DoCheck {
|
||||
* @see {@link NgSwitchCase}
|
||||
*
|
||||
* @deprecated 20.0
|
||||
* Use the @default block within a @switch block instead. Intent to remove in v22
|
||||
* Use the `@default` block within a `@switch` block instead. Intent to remove in v22
|
||||
*/
|
||||
@Directive({
|
||||
selector: '[ngSwitchDefault]',
|
||||
|
||||
Reference in New Issue
Block a user