Skip to content

Commit bba706d

Browse files
committed
Fixed bug in dot binding for angular 1.2
The concatination with "model" lacked a dot.
1 parent b1248aa commit bba706d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/decorators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ angular.module('schemaForm').provider('schemaFormDecorators',['$compileProvider'
5252
var url = templateUrl(name,form);
5353
$http.get(url,{ cache: $templateCache }).then(function(res){
5454
var key = form.key ? sfPathProvider.stringify(form.key).replace(/"/g, '"') : '';
55-
var template = res.data.replace(/\$\$value\$\$/g,'model'+key);
55+
var template = res.data.replace(/\$\$value\$\$/g,'model'+(key[0] !== '['?'.':'')+key);
5656
element.html(template);
5757
$compile(element.contents())(scope);
5858
});

0 commit comments

Comments
 (0)