1
각도 j의 지시어를 정의하는 구문은 2 가지입니다.지시어를 올바르게 정의하는 방법은 무엇입니까?
첫 번째 방법은 다음과 같습니다
angular.module("map-mcbjam", []);
angular.module("map-mcbjam", []).directive('map', function() { ...})
두 번째 방법은 다음과 같습니다
angular.module("map-mcbjam", ['directives']);
angular.module('directives', []).directive('map', function() { ...})
이 soemone 그 두 방법 사이의 차이를 설명하는 방법을 알 수 있습니까?