From 1db4f212e51f5cd37488d38abdbd368c450426a5 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Fri, 23 Oct 2020 13:09:11 -0700 Subject: [PATCH] docs: improve DefaultValueAccessor directive docs (#39404) This commit improves the DefaultValueAccessor directive docs by: - adding the `ngDefaultControl` as a search keyword to the description - adding an example of the `ngDefaultControl` usage Closes #35375. PR Close #39404 --- .../forms/src/directives/default_value_accessor.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/forms/src/directives/default_value_accessor.ts b/packages/forms/src/directives/default_value_accessor.ts index 79e57aeab7..38244cbe6d 100644 --- a/packages/forms/src/directives/default_value_accessor.ts +++ b/packages/forms/src/directives/default_value_accessor.ts @@ -36,6 +36,9 @@ export const COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionE /** * @description + * + * {@searchKeywords ngDefaultControl} + * * The default `ControlValueAccessor` for writing a value and listening to changes on input * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and * `NgModel` directives. @@ -55,6 +58,15 @@ export const COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionE * * ``` * + * This value accessor is used by default for `` and `