bodyApp.controller('customersCtrl', function ($scope, $http, cfpLoadingBar,$compile) {
$scope.test = function(){
alert('test');
} // TODO 动态生成html中 ng-click无效 解决方法 $compile 是传进来的
var html = '<a href="javascript:void(0);" ng-click="$scope.test();"></a>'
$("body").append($compile(html)($scope));
});