Good morning
I successfully used the library: link to format value in monetary format.
My problem is that when editing the value does not appear in the field, however the value of the field is filled, then save it it zeroes the value.
How can I display the value when editing?
Below the code
<script src="angular.min.js"></script>
<script src="angular-locale_pt-br.js"></script>
<script src="masks.js"></script>
<script src="angular-masks-init.js"></script>
<body ng-app="demo">
<input type="text" name="valor" id="valor" value="<?php if(htmlspecialchars($data['valor']) != '') echo htmlspecialchars($data['valor']); else echo $this->error->set_value('price'); ?>" ng-model="money" ui-money-mask="mdecimals" />
I tried adding it via pure javascript (this.value.innerText = '') but I imagine it has a way via angular