ehc-join-pipe
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

EhcJoinPipe

Pipe to show in a string from an array.

Installation

Using npm:

npm install ehc-join-pipe

Usage

In module:

// Angular
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

// Modules
import { AppRoutingModule } from './app-routing.module';
import { EhcJoinPipeModule } from 'ehc-join-pipe';

@NgModule({
  declarations: [
    AppComponent,
    SampleDdrJoinPipeComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    EhcJoinPipeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

In your ts:

import { Component, OnInit } from '@angular/core';


@Component({
    selector: 'app-ehc-join-pipe',
    templateUrl: './ehc-join-pipe.component.html',
    styleUrls: ['./ehc-join-pipe.component.css']
})
export class EhcJoinPipeComponent implements OnInit {

    public valoresNulo: any = null;
    public valores: string [] = [
        'valor 1',
        'valor 2',
        'valor 3',
        'valor 4',
        'valor 5'
    ];

    constructor() { }

    ngOnInit(): void {
    }

}

In your html:

{{valores | join}}

Readme

Keywords

none

Package Sidebar

Install

npm i ehc-join-pipe

Weekly Downloads

3

Version

0.0.1

License

none

Unpacked Size

15.8 kB

Total Files

21

Last publish

Collaborators

  • ehcarrillo