Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanusart/angular-additional-filters
Additional filters for angularJS
https://github.com/sanusart/angular-additional-filters
Last synced: 23 days ago
JSON representation
Additional filters for angularJS
- Host: GitHub
- URL: https://github.com/sanusart/angular-additional-filters
- Owner: sanusart
- Created: 2013-09-13T21:42:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-21T15:55:20.000Z (over 10 years ago)
- Last Synced: 2024-10-30T06:27:38.799Z (2 months ago)
- Language: JavaScript
- Size: 157 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular additional filters
This is small, growing collection of additional [AngularJS](http://angularjs.org) filters to manipulate strings and arrays.
#### Demo at [plunker](http://plnkr.co/edit/gSGSTj7CPthecFlyeQ11?p=preview)
## Filters:
####joinBy
{{ array | joinBy : " | " }}_Add defined separator between members of outputed array._
####removeFirst
{{ string | removeFirst }}
_Remove first character from string_
####removeLast
{{ string | removeLast }}
_Remove last character from string_####truncate
{{ string | truncate : 10 : '...' }}
_Truncate string to defined length and append defined string at the end of the truncation._
####stripHtmlTags
{{ string | stripHtmlTags }}
_Strip all HTML tags including from a string._
####capitalize
{{ string | capitalize }}
_Capitalize first letter in a string_
####kCurrency
{{ price | kCurrency : '$' }}
_Same syntax as angular currency filter only returns a shorter rounded version of the currency for display purposes. e.g: 5K 5.3K 5M 5.5M 55M_