New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ngfor-pipe

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngfor-pipe

This Module is a simple Custom pipe which can be used to filter ngFor input array with certin property on the elemnts

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

NgforPipe

This Module is a simple Custom pipe which can be used to filter ngFor input array with certin property on the elemnts

Install

Run npm install ngfor-pipe

Usage

import NgforPipeModule in your Project

 import { BrowserModule } from '@angular/platform-browser';
 import { NgModule } from '@angular/core';
 import{NgforPipeModule} from 'ngfor-pipe';
 import { AppComponent } from './app.component';
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    NgforPipeModule,
  
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { } 

Then Use the filter in ngFor in your component With the property and the vaule as args to ngforFilter.

<li *ngFor="let trip of trips | ngforFilter: 'airport' : value ">
      <span>{{trip.From}}</span>
      <span>{{trip.to}}</span>
      <span>{{trip.airport}}</span>

</li>

You can now use binding to filter ngFor with any value for this property.

Keywords

angular5 pipe

FAQs

Package last updated on 25 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts