angular/packages/forms/src/directives
Kristiyan Kostadinov c3968047b6 refactor(forms): make error messages easier to tree shake (#43223)
Currently the error message functions are defined as static methods on a class which means that as soon as one of them is used somewhere, all of them have to be retained. This isn't a problem at the moment, because all of them are behind `ngDevMode` checks, but it's error prone and it's easy to fix.

These changes move them out into functions so that they can be imported individually. It also has the advantage of allowing Webpack to minify the function names.

PR Close #43223
2021-08-26 10:05:36 -07:00
..
reactive_directives refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
abstract_control_directive.ts fix(forms): more precise control cleanup (#39623) 2020-11-12 09:38:19 -08:00
abstract_form_group_directive.ts refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
checkbox_value_accessor.ts refactor(forms): add base class for all built-in ControlValueAccessors (#41225) 2021-04-08 10:24:10 -07:00
control_container.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
control_value_accessor.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
default_value_accessor.ts refactor(forms): add base class for all built-in ControlValueAccessors (#41225) 2021-04-08 10:24:10 -07:00
error_examples.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
form_interface.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng_control.ts refactor(forms): move common validators-related logic to the AbstractControlDirective class (#38280) 2020-10-28 09:48:20 -07:00
ng_control_status.ts feat(forms): undo revert and add ng-submitted class to forms that have been submitted. (#42132) (#42132) 2021-06-08 14:02:29 -07:00
ng_form.ts refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
ng_model.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
ng_model_group.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
ng_no_validate_directive.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
number_value_accessor.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
radio_control_value_accessor.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
range_value_accessor.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
reactive_errors.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
select_control_value_accessor.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
select_multiple_control_value_accessor.ts refactor(forms): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
shared.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
template_driven_errors.ts refactor(forms): make error messages easier to tree shake (#43223) 2021-08-26 10:05:36 -07:00
validators.ts feat(forms): allow minLength/maxLength validator to be bound to null (#42565) 2021-07-21 22:35:59 +00:00