1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00
OpenSTF/res/app/docs/docs-controller.js

19 lines
483 B
JavaScript

module.exports = function DocsCtrl($rootScope, $scope, $window, $location) {
$scope.goBack = function () {
$window.history.back()
}
$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)
})
}