doc($filter): added $filter documentation

This commit is contained in:
Misko Hevery
2011-11-09 22:02:39 -08:00
parent f0fa5e6376
commit 74fac45f48
10 changed files with 115 additions and 64 deletions

View File

@@ -547,7 +547,7 @@ describe('ngdoc', function() {
});
doc.html_usage_filter(dom);
expect(dom).toContain('myFilter_expression | myFilter:b');
expect(dom).toContain('angular.filter.myFilter(a, b)');
expect(dom).toContain('$filter(\'myFilter\')(a, b)');
});
});

View File

@@ -380,9 +380,9 @@ Doc.prototype = {
dom.h('In JavaScript', function() {
dom.tag('code', function() {
dom.text('angular.filter.');
dom.text('$filter(\'');
dom.text(self.shortName);
dom.text('(');
dom.text('\')(');
self.parameters(dom, ', ');
dom.text(')');
});