标签: angularjs angularjs-directive
我正在尝试实现http://logicbomb.github.io/ng-directives/drag-drop.html指令。我有另一个指令,我试图把它包含在......
angular.module('MyApp') .directive('seconddirective', function ($rootScope, $lvlDraggable) { return { restrict: 'A',
但这不起作用......这可能吗?
答案 0 :(得分:3)
您可以参考:
http://www.bennadel.com/blog/2471-Delegating-Nested-Directive-Behavior-To-Parent-Directive-In-AngularJS.htm
或者: Nesting directives within directives