{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1406","repository_url":"https://api.github.com/repos/angular-translate/angular-translate","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1406/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1406/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1406/events","html_url":"https://github.com/angular-translate/angular-translate/issues/1406","id":134341332,"number":1406,"title":"Value expressions not evaluated when using messageformat with ng-if","user":{"login":"psaniko","id":3876460,"avatar_url":"https://avatars.githubusercontent.com/u/3876460?v=3","gravatar_id":"","url":"https://api.github.com/users/psaniko","html_url":"https://github.com/psaniko","followers_url":"https://api.github.com/users/psaniko/followers","following_url":"https://api.github.com/users/psaniko/following{/other_user}","gists_url":"https://api.github.com/users/psaniko/gists{/gist_id}","starred_url":"https://api.github.com/users/psaniko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psaniko/subscriptions","organizations_url":"https://api.github.com/users/psaniko/orgs","repos_url":"https://api.github.com/users/psaniko/repos","events_url":"https://api.github.com/users/psaniko/events{/privacy}","received_events_url":"https://api.github.com/users/psaniko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T17:11:15Z","updated_at":"2016-03-05T20:17:16Z","closed_at":"2016-03-05T20:17:16Z","body":"See plunkr: http://plnkr.co/XQHMOQAWnIFTKEybXLOy\r\n\r\nEncountered an issue when using messageformat interpolation combined with ng-if directive as in:\r\n\r\n`<span ng-if=\"falseThenTrue()\" \r\n  translate=\"lorem.customers\" \r\n  translate-value-count=\"{{ 1+1 }}\" \r\n  translate-interpolation=\"messageformat\">`\r\n\r\nAccording to `console.log` angular-translate-interpolation-messageformat receives the expression as a string (not evaluated). Although an error is thrown the output is correct. It works as expected when\r\n- Using `ng-show` instead of `ng-if`\r\n- Using default interpolation\r\n- Avoiding expression in translation value\r\n\r\nWe suspected `ng-if`'s behaviour of DOM recreation but then again why does it work perfectly with default interpolation?\r\n\r\nangular: 1.4.7\r\nangular-translate: 2.9.0\r\nangular-translate-interpolation-messageformat: 2.9.0\r\nmessageformat: 0.1.6"}}