When I hard code in the value I want to pass like this, it works and data is being returned correctly:
<!-- This works! -->
ng-click="LSCC.getCrawlResults(4661224)"
However, when I try to save a value from a text box and pass that into my ng-click, I am getting errors.
<!-- This doesn't work! -->
<input class="form-control" name="retailerID" ng-model"x">
<button type="button" class="btn btn-default" ng-click="LSCC.getCrawlResults('x')">Load</button>
I have tried passing parameters in a variety of different ways, but I can't seem to figure out how to accomplish this. Thank you!