head title update;
This commit is contained in:
1 parent
6c4e359cd5
commit
1562e05fbf
1 file changed
+3
-3
+3
-3
@@ -42,8 +42,7 @@ app.config(function ($locationProvider, $routeProvider) {
|
|||||||
{
|
{
|
||||||
name: "/gallery/:year/:course/:album",
|
name: "/gallery/:year/:course/:album",
|
||||||
templateUrl: "/views/gallery-album.html",
|
templateUrl: "/views/gallery-album.html",
|
||||||
controller: "AlbumPageController",
|
controller: "AlbumPageController"
|
||||||
title:"Работы учащихся"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "/docs",
|
name: "/docs",
|
||||||
@@ -64,7 +63,8 @@ app.config(function ($locationProvider, $routeProvider) {
|
|||||||
|
|
||||||
app.run(function($location, $rootScope, $http) {
|
app.run(function($location, $rootScope, $http) {
|
||||||
$rootScope.$on("$routeChangeSuccess", function (event, current) {
|
$rootScope.$on("$routeChangeSuccess", function (event, current) {
|
||||||
$rootScope.title = current["$$route"].title;
|
var title = current["$$route"].title;
|
||||||
|
if(title) $rootScope.title = title;
|
||||||
});
|
});
|
||||||
|
|
||||||
$http.defaults.headers.common["Accept"] = "application/json";
|
$http.defaults.headers.common["Accept"] = "application/json";
|
||||||
|
|||||||
Reference in new issue
Block a user