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

Commit

Permalink
fix(demo): use .instant()
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit committed Apr 21, 2014
1 parent eaa9bf7 commit 6bea192
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/ex1_basic_usage.htm
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ <h2 translate="SUBHEADER">Subheader</h2>
randomValue : Math.floor(Math.random() * 1000)
};

$scope.jsTrSimple = $translate('SERVICE');
$scope.jsTrParams = $translate('SERVICE_PARAMS', $scope.tlData);
$scope.jsTrSimple = $translate.instant('SERVICE');
$scope.jsTrParams = $translate.instant('SERVICE_PARAMS', $scope.tlData);

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);

// A data generated by the script have to be regenerated
$scope.jsTrSimple = $translate('SERVICE');
$scope.jsTrParams = $translate('SERVICE_PARAMS', $scope.tlData);
$scope.jsTrSimple = $translate.instant('SERVICE');
$scope.jsTrParams = $translate.instant('SERVICE_PARAMS', $scope.tlData);
};

}]);
Expand Down

0 comments on commit 6bea192

Please sign in to comment.