cookie, "Accept-Language", . , config , .
, $http $cookies
:
var app = angular.module("app", []);
app.run(["$http", "$cookies", function($http, $cookies){
$http.defaults.headers.common["Accept-Language"] = $cookies.get("LocaleCookie");
}]);
"Accept-Language" cookie, .config()
var app = angular.module("app", []);
app.config(["$httpProvider", function($httpProvider) {
$httpProvider.defaults.headers.common["Accept-Language"] = "fr";
}]);