[object Object] is automatically appeared as value in every textbox in my form. What went wrong? It appears after I inserted the attribute name="searchr" in <form> tag.
in search.htm:
<form ng-submit="search()" ng-controller="formcontrol" name="searchr"> <input type="search" placeholder="Search here" id="text_search" ng-model="searchr.text" name="text">
in controller.js:
.controller('SearchCtrl', function($scope, $http) { }
ng-model="searchr.text". What issearchr? I see it in the name attribute of your form, but do you have a js object by that name?FormControl, like the ng-controller attribute refers to?