directive link 함수에 ng-click을 동적으로 추가합니다. 요소를 클릭 가능 또는 클릭 불가능으로 정의할 수 있는 디렉티브를 작성하려고 합니다.이 디렉티브는 다음과 같습니다. transcluded elements... 결과 HTML은 다음과 같습니다. transcluded elements... 이 명령어의 실장은 다음과 같습니다. app.directive('page', function() { return { restrict: 'E', template: '', transclude: true, link: function(scope, element, attrs) { var isClickable = angular.isDefined(attrs.isClickable) && scope.$eval(att..