<div class="block_search_app">
<span class="app_name">Заявки на </span>
<select ng-model="type" class="select_app">
<option value="">Все</option>
<option value="{{type.id}}" ng-repeat="type in types">{{type.name}}</option>
</select>
</div>
<table class="table_applications" id="TableApplications">
<thead>
<th class="app name">Название заявки</th>
<th class="app status">Статус заявки</th>
<th class="app task">Задание</th>
</thead>
<tbody>
<tr class="bid" ng-repeat="doc in applications | filter:type">
<td class="name">{{doc.name}}</td>
<td class="status">
<span class="status work"></span>
В работе
</td>
<td class="task">
<a href="{{doc.task.link}}" class="task_link"><b>{{doc.task.name}}</b></a>
</td>
</tr>
app.directive('ibaModel', function () {
return {
restrict: 'A',
priority: 1010,
scope: {
config:{
templateId:'='
}
},
link: function (scope, element, attrs) {
// debugger;
var el = $(element);
el.attr('id', scope.config.templateId);
el.iba_model('init', {id: scope.config.templateId});
}
};
});
<body>
<div data-ui-view="content"></div>
<div data-ui-view="contacts"></div>
</body>
$stateProvider
.state('find', {
url: "/find",
views: {
'content': {
templateUrl: "/content.html",
controller: 'registerController'
}
}
})
.state('contacts ', {
url: "/contacts ",
views: {
'content': {
templateUrl: "/content.html",
controller: 'contentController'
},
'contacts': {
templateUrl: "/contacts.html",
controller: 'contactsController'
}
}
});