2.1.2 • Published 3 years ago

angular-ngx-pipes v2.1.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Angular Pipes

angular-ngx-pipes is a library of Angular that contains some day-to-day useful pipelines.

Table of contents

Pipes

  • Linky Pipe (linky).
  • Text Pipe (text).
  • Timezone Pipe (timezone).
  • Html Pipe (html).
  • Hours Pipe (hours).
  • Safe Pipe (safe).
  • Contains Pipe (contains).
  • Trim Pipe (trim).
  • Highlight Pipe (highlight).

Getting started

Step 1: Install angular-ngx-pipes:

NPM

npm i angular-ngx-pipes

Step 2: Import the PipesModule:

import {PipesModule} from 'angular-ngx-pipes';

@NgModule({
  declarations: [AppComponent],
  imports: [PipesModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

Pipes Usage Table

Pipe NameReturn TypeInput RequiredDescription
linkystringnoConverts a normal text to link.
textstringnoConverts html text to normal text.
timezonestringyesConverts date-time to required timezone.
htmlstringnoConverts normal text to html text.
hoursstringyesConverts time('minutes', 'seconds') to hours-minutes.
safestringyesAllows angular to trust the resource ('html', 'style', 'script', 'url', 'resourceUrl').
containsbooleanyesChecks if the given value is present inside a string.
trimstringnoRemoves any whitespaces from the string.
highlightstringyesHighlights text that contains inside a string.

Author

License

MIT

2.1.2

3 years ago

2.0.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago