阅读背景:

是否可以从JSON数组中调用AngularJS中的自定义指令?

来源:互联网 

I am trying to call a custom directive using the name from a JSON array instead of actually calling the directive directly. So, for example, I have a custom directive called AccessibilityRadio which dynamically creates radio buttons by using . I would like to use <{{field.customDirectiveName}}> and pull the value form the JSON array to call the custom directive. The problem is that when I do this I can only see the name of the custom directive on the browser access-bility-radio. So in my JSON array I have $scope.test.fields[{"customDirectiveName": "accessibility-radio"}] - something like that. I am trying to call a custom directive using th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: