Two nested click events with angularjs

后端 未结 3 518
独厮守ぢ
独厮守ぢ 2020-12-25 09:17

I have a HTML structure like this:

3条回答
  •  既然无缘
    2020-12-25 09:58

    Same as tom's answer, but little different.

            
    child
    $scope.test2 =function($event){ $event.stopPropagation(); console.log("from test2") } $scope.test =function(){ console.log("from test") }

提交回复
热议问题