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

Commit

Permalink
fix(translateDirective): fixes occuring 'translation id undefined' erros
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit committed Nov 21, 2013
1 parent d4fb329 commit bb5a2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directive/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ angular.module('pascalprecht.translate')
// Ensures the text will be refreshed after either the scope's translationId
// or the interpolated params have been changed.
scope.$watch('[translationId, interpolateParams]', function (nValue) {
if (nValue) {
if (scope.translationId) {
element.html(translate(scope.translationId, scope.interpolateParams, scope.interpolation));
}
}, true);
Expand Down

0 comments on commit bb5a2c4

Please sign in to comment.