dynamic translation in section title

stable
Juanfran 2016-01-25 14:48:37 +01:00
parent 1345b6df58
commit d1065c6543
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ module.directive("tgProgressBar", ["$tgTemplate", TgProgressBarDirective])
TgMainTitleDirective = ($translate) ->
link = ($scope, $el, $attrs) ->
$attrs.$observe "i18nSectionName", (i18nSectionName) ->
$scope.sectionName = $translate.instant(i18nSectionName)
$scope.sectionName = i18nSectionName
$scope.$on "$destroy", ->
$el.off()