lundi 26 septembre 2016

ng-translate on checkbox - Angularjs

I'm trying to use the translate directive on a checkbox. I've tried using this code:

<input type="checkbox" ng-model="model" translate="request.view.requestStatus.status"/>

and this is the second option:

 <label translate="request.view.requestStatus.status">
     <input type="checkbox" ng-model="vm.model.isValidatedByLC"/>
 </label>

Neither of them are displaying my text behind the checkbox. When i'm using the translate on the label it seems that my checkbox just disappears on my page.

Any solutions/problems that you guys suggest so I can use this on a checkbox?

Thanks, Brent




Aucun commentaire:

Enregistrer un commentaire