<form ng-submit="search()">
    <div class="row">
        <div class="col-md-10">
            <input class="form-control filterinput" type="text" placeholder="Search Apps" value="" ng-model="data.searchTerm">
            <input class="countryCheck ng-pristine ng-valid ng-empty ng-touched" type="checkbox" placeholder="" value="" ng-model="data.countryCheck"> Include Apps From Germany
        </div>
        <div class="col-md-2">
            <button class="btn btn-primary" type="submit" ng-click="search()">Search</button>
        </div>
    </div>
</form>

<table class="table" ng-show="searchResults.length">
    <caption>Search Result</caption> 
    <thead> 
        <tr> 
            <th>#</th>
            <th>App ID</th>
            <th>Score</th>
            <th>Title</th>
            <th>Already Downloaded</th>
            <th></th>
        </tr> 
    </thead> 
    <tbody> 
        <tr ng-repeat="app in searchResults">
            <th scope="row">{{$index+1}}</th>
            <td>{{app.appId}}</td>
            <td>{{app.score}}</td>
            <td>{{app.title}}</td>
            <td>
                <a ng-if="app.isAlreadyDownloaded" href="#!/download/{{app.appId}}">Download Info</a>
                <a ng-if="!app.isAlreadyDownloaded" href="#!/download/{{app.appId}}">Download</a>
            </td>
        </tr>
    </tbody> 
</table>