Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit dc11d15

Browse files
committed
Merge pull request #12 from t8g/patch-1
Custom templateUrl option
2 parents 7f1c65d + 79d6c0a commit dc11d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/formly-field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ angular.module('formly.render')
5151
value: '=formValue'
5252
},
5353
link: function fieldLink($scope, $element, $attr) {
54-
var templateUrl = getTemplateUrl($scope.options.type);
54+
var templateUrl = $scope.options.templateUrl || getTemplateUrl($scope.options.type);
5555
if (templateUrl) {
5656
$http.get(templateUrl, {
5757
cache: $templateCache

0 commit comments

Comments
 (0)