{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","settings":"","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Angular Filters","type":"basic","slug":"angular-filters","excerpt":"","body":"This repository includes a few filters that you can use.\nThese filters are available in `angular/filters/` folder.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Filter\",\n    \"h-1\": \"Use Case\",\n    \"0-0\": \"capitalize\",\n    \"0-1\": \"Capitalizes the first character of each word and lowers the rest of the word.\",\n    \"1-0\": \"humanReadable\",\n    \"1-1\": \"converts tokens into human readable output. e.g.: {{ 'contact_us' | humanReadable }} output: Contact Us\",\n    \"2-0\": \"truncateCharacters\",\n    \"2-1\": \"Truncates characters according to specified length.\",\n    \"3-0\": \"truncateWords\",\n    \"3-1\": \"Truncates characters according to specified word count\",\n    \"4-0\": \"trustHtml\",\n    \"4-1\": \"Alias to $sce.trustAsHtml. **Only use it if you know what you're doing.**\",\n    \"5-0\": \"ucfirst\",\n    \"5-1\": \"Equivalent to PHP's **ucfirst**\"\n  },\n  \"cols\": 2,\n  \"rows\": 6\n}\n[/block]","updates":["586f5a87fc24a70f00a8871f","5941053b7fc65d001b7e7b7c"],"order":6,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57ffd85f755a2e1700c2bb36","user":"567082433a32d20d00c45cab","__v":2,"githubsync":"","parentDoc":null,"version":{"version":"3.4","version_clean":"3.4.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57ffd85f755a2e1700c2bb06","57ffd85f755a2e1700c2bb07","57ffd85f755a2e1700c2bb08","57ffd85f755a2e1700c2bb09","57ffd85f755a2e1700c2bb0a","57ffd85f755a2e1700c2bb0b","57ffd85f755a2e1700c2bb0c","57ffd85f755a2e1700c2bb0d"],"_id":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","releaseDate":"2016-10-13T18:54:23.018Z","__v":1,"createdAt":"2016-10-13T18:54:23.018Z"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Extras","slug":"extras","order":7,"from_sync":false,"reference":false,"_id":"57ffd85f755a2e1700c2bb0d","createdAt":"2015-12-18T23:14:25.130Z","__v":0,"version":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae"},"createdAt":"2015-12-18T23:30:30.888Z","project":"567083021dabd80d00b122ae"}
This repository includes a few filters that you can use. These filters are available in `angular/filters/` folder. [block:parameters] { "data": { "h-0": "Filter", "h-1": "Use Case", "0-0": "capitalize", "0-1": "Capitalizes the first character of each word and lowers the rest of the word.", "1-0": "humanReadable", "1-1": "converts tokens into human readable output. e.g.: {{ 'contact_us' | humanReadable }} output: Contact Us", "2-0": "truncateCharacters", "2-1": "Truncates characters according to specified length.", "3-0": "truncateWords", "3-1": "Truncates characters according to specified word count", "4-0": "trustHtml", "4-1": "Alias to $sce.trustAsHtml. **Only use it if you know what you're doing.**", "5-0": "ucfirst", "5-1": "Equivalent to PHP's **ucfirst**" }, "cols": 2, "rows": 6 } [/block]