$filterProvider.register()

register(name, factory);

Parameters

Param Type Details
name stringObject

Name of the filter function, or an object map of filters where the keys are the filter names and the values are the filter factories.

Note: Filter names must be valid angular Expressions identifiers, such as uppercase or orderBy. Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace your filters, then you can use capitalization (myappSubsectionFilterx) or underscores (myapp_subsection_filterx).
factory Function

If the first argument was a string, a factory function for the filter to be registered.

Returns

Object

Registered filter instance, or if a map of filters was provided then a map of the registered filter instances.

doc_AngularJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.