嵌套指令无法正常工作,因为它以普通的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>