diff --git a/src/directives/schema-form.js b/src/directives/schema-form.js index de304fa0e..775e36bcb 100644 --- a/src/directives/schema-form.js +++ b/src/directives/schema-form.js @@ -20,7 +20,8 @@ angular.module('schemaForm') scope: { schema: '=sfSchema', initialForm: '=sfForm', - model: '=sfModel' + model: '=sfModel', + options: '=sfOptions' }, controller: ['$scope', function($scope) { this.evalInParentScope = function(expr, locals) { @@ -73,10 +74,7 @@ angular.module('schemaForm') lastDigest.schema = schema; lastDigest.form = form; - // Check for options - var options = scope.$eval(attrs.sfOptions); - - var merged = schemaForm.merge(schema, form, ignore, options); + var merged = schemaForm.merge(schema, form, ignore, scope.options); var frag = document.createDocumentFragment(); //make the form available to decorators