3 angular.module('zephyrApp')
4 .directive('myForm', function ($compile) {
6 template:"<div></div>",
12 link: function (scope, element, attrs) {
13 element.append($compile("<div class=\"col-md-6\"><my-"+scope.arg.formType+"><my-"+scope.arg.formType+"/></div>")(scope));
15 controller: function($scope){
16 var argIndex = parseInt($scope.argIndex);
17 $scope.arg = $scope.$parent.opt.arg[argIndex];