Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1fcee38

Browse files
committedJul 28, 2014
Fix #49
1 parent e42a13f commit 1fcee38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎examples/bootstrap-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ <h1>Schema Form Example</h1>
3535
<div class="row">
3636
<div class="col-sm-4">
3737
<h3>The Generated Form</h3>
38-
<form name="ngform" sf-model="modelData" sf-form="form" sf-schema="schema">
39-
<div sf-decorator="{{decorator}}"></div>
40-
</form>
38+
<form name="ngform" sf-model="modelData" sf-form="form" sf-schema="schema" sf-decorator-name="{{decorator}}"></form>
4139
<h3>Model</h3>
4240
<pre ng-cloak>{{pretty()}}</pre>
4341
</div>
@@ -65,6 +63,8 @@ <h3>Schema</h3>
6563

6664
<script type="text/javascript" src="../bower_components/angular/angular.js"></script>
6765
<script type="text/javascript" src="../bower_components/angular-sanitize/angular-sanitize.js"></script>
66+
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.js"></script> -->
67+
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular-sanitize.js"></script> -->
6868

6969
<script type="text/javascript" src="../bower_components/angular-ui-sortable/sortable.js"></script>
7070
<script type="text/javascript" src="../bower_components/angular-ui-ace/ui-ace.js"></script>

‎src/directives/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function($compile, schemaForm, schemaFormDecorators, sfSelect){
8181

8282
//Create directives from the form definition
8383
angular.forEach(merged,function(obj,i){
84-
var n = document.createElement(attrs.sfDecorator || snake_case(schemaFormDecorators.defaultDecorator,'-'));
84+
var n = document.createElement(attrs.sfDecoratorName || snake_case(schemaFormDecorators.defaultDecorator,'-'));
8585
n.setAttribute('form','schemaForm.form['+i+']');
8686
frag.appendChild(n);
8787
});

0 commit comments

Comments
 (0)
Please sign in to comment.