ice-blaze
e54c950e92
refactor(forms): replace errors with hasError() ( #55379 )
...
Material documentation use hasError. For homogeneity reason, this commit
will adopt material style.
Fixes #55378
PR Close #55379
2024-04-25 08:57:29 -07:00
Andrew Scott
e41a52286f
Revert "refactor: move example generation into adev, removing content from aio ( #55263 )" ( #55326 )
...
This reverts commit 9bc15994ce .
PR Close #55326
2024-04-12 14:57:05 -07:00
Joey Perrott
9bc15994ce
refactor: move example generation into adev, removing content from aio ( #55263 )
...
Remove the content from aio and set up the example generation in adev
PR Close #55263
2024-04-09 11:18:48 -07:00
Mateusz Daniluk
de777afbc5
refactor: standardize doctype declaration to <!DOCTYPE html> ( #51052 )
...
This commit standardizes the doctype declaration across all HTML files in the project to use `<!DOCTYPE html>`
PR Close #51052
2024-02-01 19:29:46 +00:00
Ben Hong
cbeef95c29
docs: migrate form-validation to standalone ( #51709 )
...
PR Close #51709
2023-09-12 12:24:03 -07:00
aanchal
d86e637a75
docs: add lang attribute to html files ( #51235 )
...
PR Close #51235
2023-08-01 12:16:44 -07:00
Alan Agius
32135b27a1
docs: update examples to reflect changes in Angular CLI version 15. ( #47904 )
...
These changes include
- Remove the usage of `enableProdMode`
- Remove `test.ts`, `polyfills.ts`, `karma.conf.js` and environment files which are no longer generated by default
PR Close #47904
2022-11-03 17:46:46 -07:00
dario-piotrowicz
0d19be1996
refactor(docs-infra): add types to all the aio examples buttons ( #44557 )
...
add types to all the buttons in the angular.io examples to encourage
the best practice of always including a type per button (regardless
to whether it is in a form or now)
PR Close #44557
2022-02-03 12:44:47 -08:00
Tim Bowersox
1610780577
docs: exclude setValue from async-validator-usage docregion ( #44764 )
...
Co-authored-by: Andrew Kushnir <43554145+AndrewKushnir@users.noreply.github.com>
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
999cc7b841
docs: add missing return statement to validate() ( #44764 )
...
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
811c244a40
docs: remove trailing space in code example ( #44764 )
...
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
9f4b46796e
docs: fix UniqueAlterEgoValidatorDirective ( #44764 )
...
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
4948ab9ee5
docs: expand async validators in reactive forms ( #44764 )
...
* Hone docregions for code examples
* Add more detailed description
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
765c860795
docs: restore UniqueAlterEgoValidator ( #44764 )
...
Update the docregion for the directive class to differentiate them
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
34bbf664b5
docs: fix UniqueAlterEgoValidatorDirective ( #44764 )
...
* Use correct class name in providers
* Update parameter & return signature for validate()
PR Close #44764
2022-01-24 14:53:14 -08:00
Tim Bowersox
4098aac093
docs: update async validators section ( #44764 )
...
* Update the UniqueAlterEgoValidator code example
* Add async-validator docregion to hero-form-reactive.component.2.ts
* Fix typo under Implementing a custom async validator
* Add h3 sections for adding async validators to reactive & template-driven forms
PR Close #44764
2022-01-24 14:53:14 -08:00
dario-piotrowicz
835987b78b
refactor(docs-infra): use eslint in aio's example-lint script ( #43218 )
...
Instead of the deprecated tslint use eslint in the aio's example-lint
script
PR Close #43218
2021-12-15 12:28:46 -05:00
George Kalpakas
7b35a3426f
refactor(docs-infra): align docs examples with default CLI TS config ( #43880 )
...
This commit enable the `noImplicitOverride` and
`noPropertyAccessFromIndexSignature` TypeScript compiler options for
docs examples to better align with the default configuration of new
Angular CLI apps. It also makes the necessary changes to the docs
examples source code.
PR Close #43880
2021-10-29 13:10:25 -07:00
Sam Severance
63383c186d
docs: use ValidationErrors interface in Form validation examples ( #42135 )
...
PR Close #42135
2021-05-18 10:14:02 -07:00
Kristiyan Kostadinov
e86a1d3441
docs: make all examples compatible with strict mode ( #41999 )
...
Turns on the `strict` compiler flag and resolves the compilation errors in the various AIO examples.
PR Close #41999
2021-05-17 10:42:18 -07:00
Kapunahele Wong
253ed5d484
docs: improve accessibility of form-validation example ( #41283 )
...
PR Close #41283
2021-05-03 14:25:11 -07:00
Pete Bacon Darwin
4a9f7daf37
docs: remove unused "docregions" ( #40479 )
...
This commit removes all the docregion tags in examples that are not
being referenced in any doc.
PR Close #40479
2021-01-20 16:12:15 -08:00
abarghoud
2c95f57266
feat(docs-infra): use Record type instead of key-value ( #40463 )
...
use Record type instead of key-value
Closes #39804
PR Close #40463
2021-01-19 09:21:23 -08:00
Bill Ludwig
5013a7e12d
docs: update identity-revealed.directive.ts to use AbstractControl instead of FormGroup ( #40132 )
...
Changes example code to accept an `AbstractControl` instead of `FormGroup` in
`identityRevealedValidator` function.
Closes #40131 .
PR Close #40132
2021-01-13 14:47:53 -08:00
George Kalpakas
8aa29438ac
refactor(docs-infra): fix docs examples for tslint rules related to object properties ( #38143 )
...
This commit updates the docs examples to be compatible with the
`no-string-literal`, `object-literal-key-quotes` and
`object-literal-shorthand` tslint rules.
This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.
PR Close #38143
2020-07-31 11:00:06 -07:00
George Kalpakas
77f38d3be1
style(docs-infra): fix docs examples for tslint rule semicolon ( #38143 )
...
This commit updates the docs examples to be compatible with the
`semicolon` tslint rule.
This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.
PR Close #38143
2020-07-31 11:00:05 -07:00
George Kalpakas
0a791e4a50
style(docs-infra): fix docs examples for tslint rule import-spacing ( #38143 )
...
This commit updates the docs examples to be compatible with the
`import-spacing` tslint rule.
This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.
PR Close #38143
2020-07-31 11:00:05 -07:00
Sonu Kapoor
5f2897be0b
docs(forms): Update catchError to return an observable ( #34357 )
...
Closes #34323
PR Close #34357
2019-12-11 13:19:57 -08:00
Tomasz Kula
c8c1aa7fc0
docs(aio): add async validation chapter ( #25189 )
...
Closes #22881
PR Close #25189
2018-08-10 09:14:25 -07:00
Tomasz Kula
49e900d6fc
docs(aio): fix issues suggested by Kara ( #23743 )
...
PR Close #23743
2018-06-26 11:03:35 -07:00
Tomasz Kula
5feb9e1935
docs(aio): address pr review issues ( #23743 )
...
PR Close #23743
2018-06-26 11:03:35 -07:00
Tomasz Kula
002a5afa98
docs(aio): add cross field validation example ( #23743 )
...
PR Close #23743
2018-06-26 11:03:35 -07:00
Brandon Roberts
87b16710e7
docs(aio): Add null type to form validation example ( #23949 )
...
Closes #20282
PR Close #23949
2018-06-05 17:32:36 -07:00
Aric Thorn
cd4c0eab94
docs(forms): Custom Validator example selector name incorrect. ( #20464 )
...
Name of selector in ForbiddenName example is not consistent with Validator class nor Html selector example. Added the selector name 'appForbiddenName' as an alias name for the input of the Validator class, and updated the view accordingly.
Fixes : #20206
PR Close #20464
2018-02-07 12:01:12 -08:00
Jesus Rodriguez
9bbf009dff
build(aio): change examples to CLI ( #19248 )
...
PR Close #19248
2017-09-21 17:05:54 -07:00
Kapunahele Wong
9b015a95eb
docs(aio): tech edits to form validation
...
closes #18495
2017-08-03 13:57:31 -07:00
Kara Erickson
939dc44391
docs(forms): update and re-organize validation guide
2017-08-03 13:56:53 -07:00
Ward Bell
93516ea8a1
docs(aio): rename cb- files and a few others
2017-04-24 14:00:51 +01:00