In this code:
AngularJS will update the model actionText as the user types stuff
You can use the ngModelOptions
directive for this. With ngModelOptions
you can further refine how the ngModel
directive works. To achieve what you asked for, you may use it like this:
You can find further information and a working example in the angular documentation: https://docs.angularjs.org/api/ng/directive/ngModelOptions