Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): show section in breadcrum
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Aug 1, 2013
1 parent 450549f commit 4c1dd72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/js/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, section
match, sectionPath = (NG_DOCS.html5Mode ? '' : '#/') + sectionId;

if (partialId) {
breadcrumb.push({ name: NG_DOCS.sections[sectionName], url: sectionPath });
breadcrumb.push({ name: sectionName, url: sectionPath });
if (partialId == 'angular.Module') {
breadcrumb.push({ name: 'angular.Module' });
} else if (match = partialId.match(GLOBALS)) {
Expand Down Expand Up @@ -389,7 +389,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, section
breadcrumb.push({ name: page.shortName });
}
} else {
breadcrumb.push({ name: NG_DOCS.sections[sectionName] });
breadcrumb.push({ name: sectionName });
}
});

Expand Down

0 comments on commit 4c1dd72

Please sign in to comment.