I want to use a directive to transform all input data to uppercase. To achieve that, I create this custom directive :
@Directive({ selector: \'[appToUpperC
Basically when you modify the value from imperative code, it becomes difficult manage position of cursor. When you re-write value input value, it throws cursor at the start of input.
I'd recommend you to go for CSS way. More cleaner
[my-attribute] input { text-transform: uppercase; }