1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Added Auto-route language support for documentation.

This commit is contained in:
Gunther Brunner 2014-09-01 16:19:23 +09:00
parent 241b711c31
commit d8bf7449d1
8 changed files with 125 additions and 35 deletions

View file

@ -1,19 +1,19 @@
module.exports = function DocsCtrl($rootScope, $scope, $window, $location) {
module.exports =
function DocsCtrl($rootScope, $scope, $window, $location) {
$scope.goBack = function () {
$window.history.back()
$scope.goBack = function () {
$window.history.back()
}
$scope.goHome = function () {
$location.path('/docs/index')
}
$rootScope.$on("$routeChangeError",
function (event, current, previous, rejection) {
console.log("ROUTE CHANGE ERROR: " + rejection)
console.log('event', event)
console.log('current', current)
console.log('previous', previous)
})
}
$scope.goHome = function () {
$location.path('/docs/en/index')
}
$rootScope.$on("$routeChangeError",
function (event, current, previous, rejection) {
console.log("ROUTE CHANGE ERROR: " + rejection)
console.log('event', event)
console.log('current', current)
console.log('previous', previous)
})
}