Three sub-assembly frame 8 pass to the parent component values

1, angular (1) (new EventEmitter ()) emit (selfEvent);. (2) The scope of the parent function into the parent component assembly, through this reference Crossing spread function in the subassembly 
2, vue . (. 1) (of EventEmitter new new ()) EMIT (selfEvent); (2) vuex
. 3, REACT (. 1) the function of this assembly into the parent's parent component, by reference to Crossing spread function in the subassembly ; (2) react-redux
other two communication scheme 4, React components: (1) cross-level inter-component communication: context; non-communication nested components: (new EventEmitter ()) emit (selfEvent).

Guess you like

Origin www.cnblogs.com/gushixianqiancheng/p/10963959.html
Recommended