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";
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user