Pipes
Below is a list of pipes in this package and a demonstration of their usage
name | sample markup | result |
---|---|---|
currency | `29.9 | currency` |
mergeUnique | `[['a', 'b'], ['b', 'c']] | mergeUnique` |
objectKeys | `{ name: 'Jeff', age: 25 } | objectKeys` |
safe | `<a [href]='"https://google.com" | safe'>https://google.com` |
sanitizeHtml | `<div [innerHtml]="'<script>alert('injection attack')</script> user content' | sanitizeHtml">` |
sentenceCase | `'this is sentence case' | sentenceCase` |
titleCase | `'this is title case' | titleCase` |