-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Proposal: Input as Observable #5689
Copy link
Copy link
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: inputs / outputscross-cutting: observablesfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationstate: Needs Design
Milestone
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: inputs / outputscross-cutting: observablesfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationstate: Needs Design
Sorry, I'm not good at English.
@Inputproperty values are provided by parent component. The changes come asynchronously.And if Input property was changed in the child component (it has the property as own property) , its change detector never notice it.
Goal
Proposal
Above code does not work. Currently, to receive input as
Observable<T>, I must write it like below.Example: http://plnkr.co/edit/BWziQygApOezTENdTVp1?p=preview
This works well, but it's not essential. Parent's input data is a simple data originally.
I think this proposal make us happy.
Thanks.