mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-06 22:35:22 +08:00
doc($filter): added $filter documentation
This commit is contained in:
@@ -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)');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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(')');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user