diff --git a/packages/common/src/directives/ng_if.ts b/packages/common/src/directives/ng_if.ts index bc087c0ee120..34bb5b7b3762 100644 --- a/packages/common/src/directives/ng_if.ts +++ b/packages/common/src/directives/ng_if.ts @@ -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 { /** * 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 { /** * 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> | null) { @@ -201,7 +201,7 @@ export class NgIf { /** * 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> | null) { diff --git a/packages/common/src/directives/ng_switch.ts b/packages/common/src/directives/ng_switch.ts index 4c65462e68cc..88e1e15bb39f 100644 --- a/packages/common/src/directives/ng_switch.ts +++ b/packages/common/src/directives/ng_switch.ts @@ -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]',