diff options
| author | Peter Bacon Darwin | 2014-02-12 22:47:42 +0000 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:41 +0000 | 
| commit | 389d4879da4aa620ee95d789b19ff9be44eb730a (patch) | |
| tree | 93352ddc8738a975904a1774d51b93d585ca1075 /docs/app/src/navigationService.js | |
| parent | a564160511bf1bbed5a4fe5d2981fae1bb664eca (diff) | |
| download | angular.js-389d4879da4aa620ee95d789b19ff9be44eb730a.tar.bz2 | |
chore(doc-gen): new docs
chore(doc-gen): implement dgeni
Diffstat (limited to 'docs/app/src/navigationService.js')
| -rw-r--r-- | docs/app/src/navigationService.js | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/docs/app/src/navigationService.js b/docs/app/src/navigationService.js new file mode 100644 index 00000000..a05f6788 --- /dev/null +++ b/docs/app/src/navigationService.js @@ -0,0 +1,24 @@ +angular.module('docsApp.navigationService', []) + +.factory('navigationService', function($window) { +  var service = { +    currentPage: null, +    currentVersion: null, +    changePage: function(newPage) { + +    }, +    changeVersion: function(newVersion) { + +      //TODO ========= +    //   var currentPagePath = ''; + +    // // preserve URL path when switching between doc versions +    // if (angular.isObject($rootScope.currentPage) && $rootScope.currentPage.section && $rootScope.currentPage.id) { +    //   currentPagePath = '/' + $rootScope.currentPage.section + '/' + $rootScope.currentPage.id; +    // } + +    // $window.location = version.url + currentPagePath; + +    } +  }; +});
\ No newline at end of file | 
