Angular neutron controller passing values to parent controller
Child instruction App-sheet, use sheet.html as the template.
In the sheet.html there is a click event, Selecttablist (item), where the item is in the child instruction App-sheet user click Select Item.
In Sheet.js, this method is shared with the parent by Scope:{selecttablist: ' & '}.
In the entire top-level route, search.html and Searchctrl are bound to each other.
In search.html, when using the app-sheet instruction, select-tablist= "Sclick (id,name)" is used to indicate the Selecttablist method of the parent-child sharing. is passed in by the Sclick (Id,name) in the Searchctrl of the parent.
The contents of "C1 Beijing" clicked in the child can be printed through the Sclick method in the parent Searchctrl.
In this way, the Searchctrl of the parent gets the value of the app-sheet instruction.