UNPKG

webpack-angular-translate

Version:

Webpack plugin that extracts the translation-ids with the default texts.

17 lines (16 loc) 446 B
$translate("global variable"); export var Test = (function() { function Test($translate, $http) { var _this = this; this.$translate = $translate; this.$http = $http; this.$translate("translate in constructor"); $http.get("xy").then(function() { return _this.$translate("translate in arrow function"); }); } Test.prototype.onClick = function() { this.$translate("this-translate"); }; return Test; })();