aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/ngdoc.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/ngdoc.js')
0 files changed, 0 insertions, 0 deletions
class="kd">function DocsController($location, $browser, $window) { this.pages = NG_PAGES; window.$root = this.$root; this.getUrl = function(page){ return '#!' + encodeURIComponent(page.name); }; this.getCurrentPartial = function(){ return './' + this.getTitle() + '.html'; }; this.getTitle = function(){ var hashPath = $location.hashPath || '!angular'; if (hashPath.match(/^!angular/)) { this.partialTitle = hashPath.substring(1); } return this.partialTitle; }; this.getClass = function(page) { var depth = page.name.split(/\./).length - 1; return 'level-' + depth + (page.name == this.getTitle() ? ' selected' : ''); }; this.afterPartialLoaded = function() { $window.scroll(0,0); SyntaxHighlighter.highlight(); }; } angular.filter('short', function(name){ return (name||'').split(/\./).pop(); });