@ngx-armory/pipes
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Ngx Armory - Pipes

npm MIT licensed
Enhance your Angular projects with a wide range of pipes


Table of contents

Installation

  1. Use npm to install the package
$ npm install @ngx-armory/pipes --save
  1. You could add to your standalone component or module a specific pipe such as IsNullPipe.
import {IsNullPipe} from '@ngx-armory/pipes';

@NgModule({
 // ...
 imports: [
   // ...
   IsNullPipe
 ]
})
import { IsNullPipe } from '@ngx-armory/pipes';

@Component({
  // ..
  standalone: true,
  imports: [IsNullPipe],
})
export class AppComponent {}
  1. Pipes are also injectable and can be used in Components / Services / etc..
import { IsNullPipe } from '@ngx-armory/pipes';

@Component({
  // ..
  providers: [IsNullPipe],
})
export class AppComponent {
  constructor(private isNullPipe: IsNullPipe) {
    const nullable = null;
    this.isNullPipe.transform(nullable); // Returns: true
  }
  // ..
}
  1. You can also use pipes as part of your template for ex.
<p>{{ "foo" | isNull }}</p>
<!-- Output: false -->

This library was generated with Nx.

Readme

Keywords

Package Sidebar

Install

npm i @ngx-armory/pipes

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

7.31 kB

Total Files

9

Last publish

Collaborators

  • maicongodinho_