ng-show (또는 other)와 같은 지시어의 표현식이 중복 된 이유는 무엇입니까? 나는 단순한 jsfiddle 예 http://jsfiddle.net/fA5YX/을 만들었다. 브라우저 콘솔에서 확인하십시오.AngularJs : ng-show에서 두 번 확인
<div ng-app ng-controller="ctrl" ng-show="test()">shown</div>
<script>
function ctrl($scope) {
$scope.test = function() {
console.log('check');
return true;
}
}
</script>
어떻게 멈 춥니 까? 하나만 수표가 필요해.