To find location matching a given request, nginx first checks locations defined using the prefix strings (prefix locations). Among them, the location with the longest matching prefix is selected and remembered. Then regular expressions are checked, in the order of their appearance in the configuration file.
location / {
location ~ /sub/(.*) {
# activate subscriber (streaming) mode for this location
push_stream_subscriber;
# positional channel path
push_stream_channels_path $1;
push_stream_longpolling_connection_ttl 30s;
push_stream_last_received_message_time $arg_time;
push_stream_last_received_message_tag $arg_tag;
}
proxy_pass http://127.0.0.1:8080;
}
str.gsub!(/[A-z]/, keymap)
angular.module('example', [])
.provider('MyService', function ($logProvider){
var var1, var2;
this.setVar1 = function(value){ var1 = value; };
this.setVar2 = function(value){ var2 = value; };
this.$get = function ($q){
return new MyService();
function MyService(){
this.returnSomething = function (){
return $q.when('something ' + var1);
};
}
};
});
<table ng-table="tableParams" show-filter="true" class="table">
<tr ng-repeat-start="user in $data">
<td data-title="'Patient'" filter="{ 'Patient': 'text' }" ng-click="getPatientDetails(user.RequestNumInt)">
{{user.Patient}}
</td>
</tr>
<tr ng-repeat-end>
<td>
<ul ng-show="detailsUserId === user.RequestNumInt">
<li >
<table class="table">
<tr ng-repeat="exam in exams">
<td >{{exam.ExamName}}</td>
</tr>
</table>
</li>
</ul>
</td>
</tr>
</table>
$scope.getPatientDetails = function(RequestNumInt){
$scope.detailsUserId = $scope.detailsUserId === RequestNumInt ? null : RequestNumInt;
$http.get("api/controllers/LaboratoryController.php?RequestNumInt="+RequestNumInt).success(function(data){
$scope.exams=data;
});
};
query.skills = {
1: true,
2: false
};
<input type="checkbox" ng-model="query.skills[1]"/>
<input type="checkbox" ng-model="query.skills[2]"/>