I'm trying to use gettext in combination with ngSwithc, as follows:
<ANY ng-switch="expression">
<ANY ng-switch-when="matchValue1" translate>...</ANY>
<ANY ng-switch-when="matchValue2" translate>...</ANY>
<ANY ng-switch-default translate>...</ANY>
</ANY>
Here is a jsfiddle demonstrating the issue. The error I get is
Error: [$compile:multidir] Multiple directives [ngSwitchWhen, translate] asking for transclusion on: <div ng-switch-when="opt0" translate="">
Any suggestion how I can use gettext in combination with ngSwitch ?
Simple fix is move
translate
attribute to another tag inside theswitch
tags