I have an input[text] that you type an URL and it will use an async validator to check if it is a valid RSS feed.
The URL is something like this, where feed-url is a directive for the async validation:
<input type="text"
name="url"
ng-model="url"
ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }"
placeholder="http://"
feed-url
>
I want to add the protocol ('http://'
) if the user forgets to. This must be done before it's validated (because it won't apply the model in case the user forgets because the URL is invalid).
I can't find any way to do it. Anyone has any idea?