I have a problem with my directive, it gets a ngModel
to insert a value in a text field inside it, but when this model comes with some value it just disappears with it.
Basically I want to pass ngModel
to my directive, if there is any value in the model it inserts into the text field, and any modification of the field it modifies in the model.