Skip to content

Commit beda001

Browse files
committed
Merge branch 'cherrydev-master'
2 parents 4e9ea86 + 2eb2a5a commit beda001

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/showErrors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
showErrorsModule = angular.module('ui.bootstrap.showErrors', []);
55

66
showErrorsModule.directive('showErrors', [
7-
'$timeout', 'showErrorsConfig', function($timeout, showErrorsConfig) {
7+
'$timeout', 'showErrorsConfig', '$interpolate', function($timeout, showErrorsConfig, $interpolate) {
88
var getShowSuccess, getTrigger, linkFn;
99
getTrigger = function(options) {
1010
var trigger;
@@ -30,7 +30,7 @@
3030
trigger = getTrigger(options);
3131
inputEl = el[0].querySelector('.form-control[name]');
3232
inputNgEl = angular.element(inputEl);
33-
inputName = inputNgEl.attr('name');
33+
inputName = $interpolate(inputNgEl.attr('name') || '')(scope);
3434
if (!inputName) {
3535
throw "show-errors element has no child input elements with a 'name' attribute and a 'form-control' class";
3636
}

0 commit comments

Comments
 (0)