angular/packages/core
Kristiyan Kostadinov 9165942629 fix(core): handle invalid classes in class array bindings (#49924)
When binding an array to `class` like `[class]="['foo', 'bar']"`, the runtime treats it the same as a literal binding with all the values being `true`, e.g. `{foo: true, bar: true}`. While object literals can only have string keys, arrays can have any value which can lead to errors if the array contains non-string values.

These changes add some logic to stringify the keys and ignore invalid ones.

Fixes #48473.

PR Close #49924
2023-04-19 16:28:26 +00:00
..
global build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rxjs-interop fix(core): Fix capitalization of toObservableOptions (#49832) 2023-04-13 19:12:54 +00:00
schematics refactor(migrations): log a link to the standalone migration (#49752) 2023-04-10 09:04:02 -07:00
src fix(core): handle invalid classes in class array bindings (#49924) 2023-04-19 16:28:26 +00:00
test fix(core): handle invalid classes in class array bindings (#49924) 2023-04-19 16:28:26 +00:00
testing refactor(core): Create TestBed injector without a module (#49864) 2023-04-19 15:30:23 +00:00
BUILD.bazel build(core): introduce @angular/core/rxjs-interop entrypoint (#49154) 2023-03-30 09:44:38 -07:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: update minimum supported Node version from 16.13.0 -> 16.14.0 (#49771) 2023-04-11 07:56:31 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00