From 96175fdda247814e8376f15d4e4b22b6e4cf5c49 Mon Sep 17 00:00:00 2001 From: sovtara Date: Thu, 1 Apr 2021 12:29:33 +0300 Subject: [PATCH] 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 --- aio/content/guide/dependency-injection-in-action.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/dependency-injection-in-action.md b/aio/content/guide/dependency-injection-in-action.md index e7c2a90353..f25c5452b3 100644 --- a/aio/content/guide/dependency-injection-in-action.md +++ b/aio/content/guide/dependency-injection-in-action.md @@ -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 `
` tags, +The sample code applies the directive's `appHighlight` attribute to two `
` tags, first without a value (yielding the default color) and then with an assigned color value.