I have an input and a button
<input type="text" name="search_tags" id="search_tags" placeholder="Search by Tags" class="form-control" >
<button type="submit" class="btn btn-primary btn-lg" ng-click="searchTags()">Search</button>
How do I pass the text present in the input textbox to the searchTags() function after button ng-click?

<input type="text" name="search_tags" id="search_tags" ng-model="myText" placeholder="Search by Tags" class="form-control" >. Then you can access myText value in the searchTags() method using the $scope service :$scope.myText.