ComponentRef setInputs support

This issue has been created since 2022-09-21.

Which @angular/* package(s) are relevant/related to the feature request?

@angular/core

Description

Hi! angular team!

In the last angular release you added a new method to the ComponentRef called "SetInput" that allows to change one input property of the component.

This new feature works well, but when we need to update more than one input "at the same time" the ngOnChanges is executed multiple times (one for each property updated).

Proposed solution

I propose to change the method input in order to allow a Record (where the key is the name of the property) and of course rename the method to "setInputs".

Alternatives considered

No alternatives for now.

angular-robot[bot] wrote this answer on 2022-09-23

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-09-30
Star Count 84080
Watcher Count 3064
Fork Count 22235
Issue Count 1197

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
[Addition]: Large multi-owner Panther cluster 1 2022-05-17 2022-09-14
lazyXDS: App's virtualservice route rule hasn't effected while first accessing to it 3 2021-12-28 2022-09-09
Redesign for Windows 11 0 2022-01-15 2022-07-24
Could it be used with PyTorch=1.6.0 in anaconda? 2 2021-01-17 2022-08-04
Interpreting SC code that exports a sound file 0 2021-08-04 2022-08-22
Choose task folder location 0 2021-07-08 2022-08-18
Custom blocks don't seem to be rendering 3 2021-06-28 2022-08-08
Fields for background size and attachment 0 2021-06-25 2022-08-31
What does padding do to the observablity or manageblity? 0 2021-11-24 2022-09-20
Add Verification Code Provider 2 2021-11-09 2022-08-27
application can't create publisher repeatedly with previous one already destroyed 7 2021-10-08 2022-08-21
RIDE under Windows can't connect to interpreter in WSL2 using localhost 1 2022-01-10 2022-09-19
ExpressionExplorer: `global` stronger than `let` 2 2022-01-26 2022-07-29
GUI appears in nowhere land 12 2022-04-22 2022-09-16
Button to "clear heat" 6 2022-04-22 2022-09-29
Make contracts compatible with EIP1271 1 2018-08-08 2022-09-24
PSD layers? 2 2021-01-06 2022-01-09
Failed to find api location for area: clienttools id: 187ec90d-dd1e-4ec6-8c57-937d979261e5 0 2021-07-07 2022-09-29
Order of the Griffon (USA) password screen 3 2022-03-23 2022-09-25
Prevent 'Local Map' purchases while Pug are manipulating hyperlanes 0 2022-08-07 2022-09-01
flag to ignore warnings 1 2021-05-16 2022-09-28
[New msys2-runtime-package version] msys2-runtime: don't compress man pages to avoid a file conflict 1 2021-11-11 2022-08-30
isEmpty improvements for number types 0 2021-11-18 2022-06-30
allow multiple item selection using checkboxes in corner of software icons 2 2021-03-14 2022-07-15
Breaking change in v4.6.0 4 2022-01-24 2022-08-07
An option to show "Create with CTRL+Enter" only when there is no suggestion available 6 2022-02-02 2022-09-09
Noisy logging during shutdown 1 2022-04-08 2022-09-29
document is not defined in SSR apps 1 2021-11-16 2022-09-21
Crash report: `NotFoundError: Node.removeChild: The node to be removed is not a child of this node` 1 2021-11-29 2022-09-02
请求一下,是否有接口可以单独或批量获取股票的基本信息,比如上市时间? 6 2021-10-03 2022-09-29
Inaccurate and misleading description regarding sharing a model-driven app 1 2022-09-09 2022-09-29
Undefined type 'Dotenv\Dotenv'.intelephense 1 2021-05-24 2022-09-13
Update the LRJ and VP api + others in the future in the routing to handle multiple options 0 2022-09-04 2022-09-21
Experiment with sourceURLs for better Underscore Template Debugging 3 2014-12-10 2022-09-21
Add `sendShippingInfo` setting 1 2021-01-14 2022-09-19
Zero dollar line items are now getting sent to Gateway if price is a float as 0.0 !== 0 2 2021-09-17 2022-09-19
Changelog in GitHub release no longer has commit links 6 2022-08-30 2022-09-24
It doesnt work with websites with openGL 1 2021-04-12 2022-09-22
ParamType.INLINED produces wrong behaviour for Settings.cacheParsingConnection 4 2021-11-03 2022-09-22
etcd events and main's daily backups are kept for 7 years 9 2022-01-27 2022-09-22
Modeler is slow when importing diagrams with high nesting 4 2022-03-04 2022-08-06
Reference parsing doesn't work in the CLI tool using relative paths. 3 2022-06-24 2022-08-07
reduction parameter in nn.NLLLoss() depricated? 2 2021-11-24 2022-09-15
泛型模型将数组解析为字符串时错误 0 2020-08-14 2022-01-21
Use proper exponential backoff in transactions that are cleared (e.g. to avoid a reference cycle) 0 2022-06-02 2022-09-30
Provide instructions to build jaxlib via docker 3 2021-12-14 2022-09-24
Select and copy TAB characters without expanding to spaces 4 2020-10-02 2022-08-14
`io.netty:netty-all:4.1.75.Final` declares an empty automatic module name 2 2022-03-15 2022-09-10
Failing test(s): unable to extract CPU cores from machine type (TestAccNotebooksInstance_*, TestAccNotebooksInstanceIam*Generated) 2 2021-09-24 2022-09-13
Failed to convert docker-compose with profiles 6 2021-11-09 2022-09-27