How to pass parameters in angular-translate?

How to pass parameters in angular-translate?

Programming Javascript AngularJS

This page concerns on how to pass parameters on angular-translate.

Source text:

From codebehind:

$translate.instant(translationKey, { 'MyTranslationVariable': Notifications.MessagesCount }

From HTML:

{{ 'translation-key' | translate:{ MyTranslationVariable: Notifications.MessagesCount } }}

Previous Post Next Post