Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the initial value of ng-model to an empty string in angularjs?

Tags:

I want to be able to set my initial value for an attribute of my model as such

<input type="text" ng-model="selectedModel.title" name="title" value="" >

As shown above, I want the value of the attribute to be an empty string as to initially instantiate the input text field with an empty string.

However, currently the ng-model="selectedModel.title" overrides the value="".

How do I get past this?