An input that display and edit of a list of values translated in multiple languages.
This directive also inherits from the ng-model controller and can be integrated to forms like any other input. Most directives frequently used conjointly with ng-model are also useable (such as ng-change, ng-required, ng-disabled, etc)
This directive is also designed to be power-user friendly: you can navigate through the values by using the Tab key and add new values with the Enter key. You can also paste values separated by line breaks. Give it a try !
ng-model: the variable to bind tomode: "lucca" for Lucca proprietary format (more formats will eventually be handled later on)
<luid-translations-list ng-model="myTranslatedList"><luid-translations-list>
<luid-translations-list ng-model="myTranslatedList" ng-change="onListChanged()" ng-required="true" mode="lucca" deletion-callback="confirmDeletion()"><luid-translations-list>
ng-model:
{{ luccaTranslations | json }}
Number of times ng-change has been called : {{translationsListChangedCount}}
ng-model:
{{ luccaTranslations2 | json }}
Number of times ng-change has been called : {{translationsListChangedCount2}}