慕婉清6462132
app.controller('One',['$ scope','$ rootScope'function($ scope){$ rootScope。$ on(“CallParentMethod”,function(){$ scope.parentmethod();});$ scope.parentmethod = function(){// task}}]);app.controller('two',['$ scope','$ rootScope'function($ scope){$ scope.childmethod = function(){$ rootScope。$ emit(“CallParentMethod”,{});}}]);