Angular Directive(각도 지시)의 선택적 매개변수 나는 Angular에 대해 5개의 파라미터를 받는 지시문을 만들었고 그 중 하나는 옵션 배열입니다.제가 대처하려는 방법은 다음과 같습니다. app.directive('fooDirective', function() { return { restrict: 'AE', scope: { param1: '=', param2: '=' // optional array }, template: //... " Message " //... controller: function($scope) { if (typeof $scope.param2 === 'undefined') $scope.param2 = []; console.log($scope.param2); $scope...