layout update; mobile version; data update;

This commit is contained in:
tmshv committed 2015-03-02 04:44:53 +03:00
1 parent 8d0f88ec81
commit 5b477aa41c
18 files changed
+348 -138

No files matched your search

+11 -1
View File
@@ -49,11 +49,21 @@ app.config(function ($locationProvider, $routeProvider) {
});
});
app.run(function($location, $rootScope, $http) {
app.run(function($location, $rootScope, $http, config) {
$rootScope.$on("$routeChangeSuccess", function (event, current) {
$rootScope.title = current["$$route"].title;
});
$rootScope.contact = {
address: config.address,
telephone: config.telephone,
email: config.email
};
$rootScope.now = {
year: new Date().getFullYear()
};
$http.defaults.headers.common["Accept"] = "application/json";
});