mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-15 09:16:53 +08:00
doc($filter): added $filter documentation
This commit is contained in:
@@ -191,8 +191,8 @@ describe('parser', function() {
|
||||
expect(scope.$eval("'a' + 'b c'")).toEqual("ab c");
|
||||
});
|
||||
|
||||
it('should parse filters', inject(function($provide) {
|
||||
$provide.filter('substring', valueFn(function(input, start, end) {
|
||||
it('should parse filters', inject(function($filterProvider) {
|
||||
$filterProvider.register('substring', valueFn(function(input, start, end) {
|
||||
return input.substring(start, end);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user