I am using angularjs and I have an input like
<input type='text' pattern="[0-9.,]+" ng-model="treasuryValue" />
I set first value to input using ng-model tag. But while setting first value to input my pattern doesn't work. Pattern tag runs first time when input changes. How can I format value in input while setting it's first value.