Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(directive): ensure value of translate will be translated always
Browse files Browse the repository at this point in the history
Solves #717 by the way
  • Loading branch information
knalli committed Jun 1, 2015
1 parent 5a85a64 commit 454d702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/directive/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ function translateDirective($translate, $q, $interpolate, $compile, $parse, $roo
} else {
observeElementTranslation('');
}
} else if (iAttr.translate) {
// ensure attribute will be not skipped
observeElementTranslation(iAttr.translate);
}
updateTranslations();
scope.$on('$destroy', unbind);
Expand Down

0 comments on commit 454d702

Please sign in to comment.