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

Commit

Permalink
fix(ngdocs): @requires prefix only $name with ng. fix #61
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Jan 10, 2014
1 parent 9a27cb0 commit d407eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ Doc.prototype = {
}
dom.h('Dependencies', self.requires, function(require){
dom.tag('code', function() {
var id = /[\.\/]/.test(require.name) ? require.name : 'ng.' + require.name,
name = require.name.split(/[\.:#\/]/).pop();
var id = require.name[0] == '$' ? 'ng.' + require.name : require.name,
name = require.name.split(/[\.:\/]/).pop();
dom.tag('a', {href: self.convertUrlToAbsolute(id)}, name);
});
dom.html(require.text);
Expand Down

0 comments on commit d407eb3

Please sign in to comment.