<div style="display: inline-block;" ng-controller="modalCtrl">
<button ng-click="showModal = !showModal">Entities</button>
<div class="modal fade in" aria-hidden="false"
style="display: block;" ng-show="showModal">
<input type="text" placeholder="Search" ng-model="simpleFilter">
<button type="button" ng-click="showModal=false">Ok</button>
<div ng-repeat="entity in entityArray | filter:simpleFilter">
style="display: inline-block; margin-top: 5px"