How sub-assembly method defined in the parent component passed to call it?

   // Food components (a general assembly, is that pop up pictures of food)

 

 Parent component method is called sub-component object:

    1. To obtain the object subassembly

      By specifying a subassembly ref = "Food"

      

 

     2. Define your own way in the sub-components:

      

 

 

     3. Where the need to call:

      

 

      Father transfer using props to the child

Guess you like

Origin www.cnblogs.com/hou-yuan-zhen/p/11740968.html