docs: update date pipe api reference to indicate it is a pure pipe (#42320)
This note was included in #37099 but the PR was closed without being merged. Fixes #33897 PR Close #42320
This commit is contained in:
parent
bdd3cca9ab
commit
9f50495f28
|
@ -17,6 +17,14 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
|
||||||
*
|
*
|
||||||
* Formats a date value according to locale rules.
|
* Formats a date value according to locale rules.
|
||||||
*
|
*
|
||||||
|
* `DatePipe` is executed only when it detects a pure change to the input value.
|
||||||
|
* A pure change is either a change to a primitive input value
|
||||||
|
* (such as `String`, `Number`, `Boolean`, or `Symbol`),
|
||||||
|
* or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).
|
||||||
|
*
|
||||||
|
* Note that mutating a `Date` object does not cause the pipe to be rendered again.
|
||||||
|
* To ensure that the pipe is executed, you must create a new `Date` object.
|
||||||
|
*
|
||||||
* Only the `en-US` locale data comes with Angular. To localize dates
|
* Only the `en-US` locale data comes with Angular. To localize dates
|
||||||
* in another language, you must import the corresponding locale data.
|
* in another language, you must import the corresponding locale data.
|
||||||
* See the [I18n guide](guide/i18n#i18n-pipes) for more information.
|
* See the [I18n guide](guide/i18n#i18n-pipes) for more information.
|
||||||
|
|
Loading…
Reference in New Issue