My current requirement involves the following:
<label>Website Address</label>
<span><input type="text" class="form-factor" data-ng-model="websiteUrl"/></span>
Currently, I have HTML code that looks like this. When a user enters text in the website URL field, I want to automatically add a prefix of http://
to the URL.
If the user includes http://
in the URL they enter, then I do not want to add it again.
How can I achieve this using AngularJS?
Please provide your suggestions