mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Add Documentation in Markdown plus express middleware for in-site rendering.
This commit is contained in:
19
res/app/docs/docs-controller.js
Normal file
19
res/app/docs/docs-controller.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user