head title update;

This commit is contained in:
tmshv committed 2015-07-09 06:55:49 +03:00
1 parent 6c4e359cd5
commit 1562e05fbf
1 file changed
+3 -3
+3 -3
View File
@@ -42,8 +42,7 @@ app.config(function ($locationProvider, $routeProvider) {
{
name: "/gallery/:year/:course/:album",
templateUrl: "/views/gallery-album.html",
controller: "AlbumPageController",
title:"Работы учащихся"
controller: "AlbumPageController"
},
{
name: "/docs",
@@ -64,7 +63,8 @@ app.config(function ($locationProvider, $routeProvider) {
app.run(function($location, $rootScope, $http) {
$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";