.when('/workpeople/show/id/{workerId:\d+}', {
...
crmApp.controller('CrmWorkPeopleShowController', ['$scope', '$http', '$routeParams', function($scope, $http, $routeParams){
$scope.watispage = 'Сотрудник';
$http.get('api/ShowWorkpeople/' + $routeParams.id).then(
function(result){
$scope.workpeople = result.data;
}
)
}]);
$text_search = 'Vasily Pupkin Alexeevich';
$arr_split = preg_split('/\W+/', $text_search);
$search = implode(', ', $arr_split);
$sql = "SELECT .. FROM .. WHERE name IN($search) OR surname IN($search) OR patronymic IN($search)";
$message[] = array('header' => $row['Header_News'], 'data' => $row['Data']); // $id тут не нужен я полагаю
$.each(data, function(i, e) {
$('#TableNews').append('<div class="News"><div class="Times">' + e.data + '</div><div class="HeaderNews">' + e.header + '</div></div>');
});