内置指令和内置事件

<div ng-include="'other.html'"></div>

<div ng-include src="'other.html'"></div>

<button ng-click='changeStaus($event)'>点击</button>

$scope.changeStaus=function(event){

  angular.element(event.target).html('点击改变按钮文字');angular.element()方法可以把dom对象转换为jquery对象

}

posted @ 2015-01-31 13:41  向着太阳生  阅读(137)  评论(1)    收藏  举报