Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: fix deprecation message on ngIf/ngSwitch #62149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/common/src/directives/ng_if.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]',
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
10 changes: 5 additions & 5 deletions packages/common/src/directives/ng_switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]',
Expand All @@ -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;
Expand Down Expand Up @@ -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]',
Expand All @@ -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;

Expand Down Expand Up @@ -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]',
Expand Down
Loading