I am trying to implement an input text field where the $ dollar sign should appear in textbox. when user enters value this dollar symbol should remain there and act as a part of value that I will get from text box. Since the app is angular I can retrieve input value or display piped value in it. But I need the dollar sign or currency sign to be in the text box and user needs to enter value in tat text box. On entering the $ sign should remain there and in backend I need to get something like $500.
<div ng-app="myApp" ng-controller="costCtrl">
<p>Price = {{ price | currency }}</p>
<input type="text" ng-model="price | currency"/>
</div>
I am attaching image for the input box the way I want it to look so that user value entered is next to dollar sign.