https://github.com/burdiuz/js-angular-terminator-pipe
Your data is piped and your pipes are being terminated.
https://github.com/burdiuz/js-angular-terminator-pipe
Last synced: 2 months ago
JSON representation
Your data is piped and your pipes are being terminated.
- Host: GitHub
- URL: https://github.com/burdiuz/js-angular-terminator-pipe
- Owner: burdiuz
- Created: 2020-08-10T19:26:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T19:30:01.000Z (almost 5 years ago)
- Last Synced: 2025-03-17T19:48:46.362Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @actualwave/terminator-pipe
This is simply a pipe that does nothing and returns an empty string no matter what input it gets.
Check [sandbox with an example](https://codesandbox.io/s/angular-terminator-pipe-showcase-59qe8?file=/src/app/app.component.html) on how to use the pipe.## Installation
```
npm install @actualwave/terminator-pipe
```Can be imported with module
```javascript
import { TerminatorPipeModule } from '@actualwave/terminator-pipe';@NgModule({
imports: [
TerminatorPipeModule,
...
```# Use
End your interpolation expression with `terminator` pipe and it will display nothing.
```html
{{ date$ | async | date | terminator }}
```
This example is pointless, because whatever values date$ observable returns, in the end it will render nothing.
`terminator` pipe has aliases `t800` and `T800` for your convenience.
```html
{{ judgmentDay | date | T800 }}
```Additionally, this package provides conditional terminator `terminateIf`(aliases `t1000` and `T1000`) which also
acceps boolean parameter to determine if value should be passed or violently terminated.
```html
{{ connor.John | terminateIf : approvedForTermination }}
```