layout update; mobile version; data update;
This commit is contained in:
1 parent
8d0f88ec81
commit
5b477aa41c
18 files changed
+348
-138
No files matched your search
+11
-1
@@ -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";
|
||||
});
|
||||
|
||||
|
||||
+3
-1
@@ -14,6 +14,8 @@ angular.module("hudozhka.data", [])
|
||||
})
|
||||
.service("config", function(){
|
||||
return {
|
||||
telephone: "8 (81362) 76-312"
|
||||
telephone: "8 (81362) 76-312",
|
||||
email: "hudozka@gmail.com",
|
||||
address: "г. Шлиссельбург, ул. 18-го января, д. 3"
|
||||
};
|
||||
});
|
||||
@@ -5,7 +5,6 @@
|
||||
module.exports = function (app) {
|
||||
app.controller("HomePageController", function ($scope, config) {
|
||||
$scope.pageClass = "page-home";
|
||||
$scope.telephone = config.telephone;
|
||||
|
||||
$(".fotorama").fotorama();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user