rpv-join-pipe
v8.0.3
Published
Pipe to show in a string from an array.
Downloads
3
Readme
RpvJoinPipe
Pipe to show in a string from an array.
Installation
Using npm:
npm install rpv-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 { RpvJoinPipeModule } from "rpv-join-pipe"; //especial atención a cómo llamamos el componente
@NgModule({
declarations: [AppComponent, SampleDdrJoinPipeComponent],
imports: [BrowserModule, AppRoutingModule, RpvJoinPipeModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
In your ts:
import { Component, OnInit } from "@angular/core";
@Component({
selector: "app-sample-rpv-join-pipe",
templateUrl: "./sample-rpv-join-pipe.component.html",
styleUrls: ["./sample-rpv-join-pipe.component.css"],
})
export class SampleRpvJoinPipeComponent {
valores: string[];
constructor() {
this.valores = ["valor1", "valor2", "valor3", "valor4", "valor5"];
}
}
In your html:
{{valores | join}}