An input that display and edit a text available in different languages
As with the other directives, it inherits from the ng-model controller and as such can be integrated to forms like any other input.
Supports 2 modes :
dictionary default mode, the ng-model will have this form {"en": "some stuff", "fr": "des bidules"}| or pipe the ng-model will be a string looking like this "en:some stuff|fr:des bidules"
ng-model: the variable to bind tong-change: events to launch when the value is updatedmode: "dictionary", "|" (or "pipe"), "lucca" (for proprietary format)
<luid-translations ng-model="myTrads"></luid-translations> <luid-translations ng-model="myTrads" mode="|" ng-change="changed()" size="x-long"></luid-translations>
myTrads: {{myTrads}}
myTradsPipe : {{myTradsPipe}}
$error.required = {{!!translationform.requiredtranslation.$error.required ? translationform.requiredtranslation.$error.required : "undefined"}}
$valid = {{translationform.requiredtranslation.$valid}}
ng-model = {{requiredModel}}
Number of times ng-change has been called : {{count}}