1 2 3 4 5 6 7 8 9 10 11 12 13 14
appDS2 .directive('stepForm', function($compile,$http, stepFormFactory) { return { restrict: 'AE', // scope: { // jsonSource: '=' // }, link: function(scope, elem, attrs) { var jsonSrcName = "app/fusionapp/scripts/view-models/wz_steps/json/step1.json"; stepFormFactory.renderForm(jsonSrcName, elem, scope); } } });