如何在angularjs中包含指令内部指令?

时间:2016-02-05 13:11:54

标签: javascript angularjs

嵌套指令无法正常工作,因为它以普通的html ..

执行
//nested directive
directive("uploadinput", function(){
   .... 
})

//directive:
directive("mydirective", function(){
  return {
     restrict: "E",
     templateUrl: "partials/mydirective.html",
     scope: {data: "="}
});

模板

<div ng-repeat='i in data.model'>
    <uploadinput  ng-model='i.model'></uploadinput> <!--nested directive is not working-->
</div>

0 个答案:

没有答案