We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e89aadc commit 152a2a8Copy full SHA for 152a2a8
1 file changed
test/unit/directive.js
@@ -190,8 +190,8 @@ describe("Directive", function () {
190
191
it("Changing language should translate again not loosing scope", function () {
192
catalog.setCurrentLanguage("nl");
193
- $rootScope.name = "Ruben";
194
- var el = $compile("<div><div translate>Hello {{name}}!</div></div>")($rootScope);
+ $rootScope.providedName = "Ruben";
+ var el = $compile("<div><div translate translate-params-name='providedName'>Hello {{name}}!</div></div>")($rootScope);
195
$rootScope.$digest();
196
assert.equal(el.text(), "Hallo Ruben!");
197
catalog.setCurrentLanguage("en");
0 commit comments