docs: fix the property name in the example (#41410)

AppHighlight directive from the example doesn't have myHighlight attribute.
It only has appHighlight property. So we should use appHighlight instead of myHighlight.

PR Close #41410
This commit is contained in:
sovtara 2021-04-01 12:29:33 +03:00 committed by Andrew Kushnir
parent d5a8302dfd
commit 96175fdda2
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ Angular sets the constructor's `el` parameter to the injected `ElementRef`.
(An `ElementRef` is a wrapper around a DOM element,
whose `nativeElement` property exposes the DOM element for the directive to manipulate.)
The sample code applies the directive's `myHighlight` attribute to two `<div>` tags,
The sample code applies the directive's `appHighlight` attribute to two `<div>` tags,
first without a value (yielding the default color) and then with an assigned color value.
<code-example path="dependency-injection-in-action/src/app/app.component.html" region="highlight" header="src/app/app.component.html (highlight)"></code-example>