angular/packages/common/src
Andrea Canciani 4744c229db fix(common): correct typing and implementation of SlicePipe (#37447)
Even in the overloads, state that it can accept `null` and
`undefined`, in order to ensure easy composition with `async`.

Additionally, change the implementation to return `null` on an
`undefined` input, for consistency with other pipes.

BREAKING CHANGE:
The `slice` pipe now returns `null` for the `undefined` input value,
which is consistent with the behavior of most pipes. If you rely on
`undefined` being the result in that case, you now need to check for it
explicitly.

PR Close #37447
2020-09-28 12:23:33 -04:00
..
directives docs(common): Wrong parameter description on TrackBy (#38495) 2020-08-18 10:08:44 -07:00
i18n feat(common): Add ISO week-numbering year formats support to formatDate (#38828) 2020-09-21 12:24:43 -07:00
location docs(router): clarify how base href is used to construct targets (#38123) 2020-07-29 13:34:02 -07:00
pipes fix(common): correct typing and implementation of SlicePipe (#37447) 2020-09-28 12:23:33 -04:00
common.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
common_module.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
cookie.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
dom_adapter.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
dom_tokens.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
platform_id.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
private_export.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
viewport_scroller.ts fix(common): Allow scrolling when browser supports scrollTo (#38468) 2020-08-14 11:41:22 -07:00