$filter

Improve this Doc View Source $filter

  1. $filterProvider
  2. service in module ng

Filters are used for formatting data displayed to the user.

They can be used in view templates, controllers or services.Angular comes with a collection of built-in filters, but it is easy to define your own as well.

The general syntax in templates is as follows:

{{ expression [| filter_name[:parameter_value] ... ] }}

Usage

$filter(name);

Arguments

Param Type Details
name String

Name of the filter function to retrieve

Returns

Function

the filter function

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.4/docs/api/ng/service/$filter

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部