Feat: added plunker url; Feat: update example

This commit is contained in:
Lorenzo Iovino 2019-05-08 11:37:13 +02:00
parent fd2734d0da
commit 1c295b8bd3
5 changed files with 7 additions and 3 deletions

View file

@ -5,7 +5,7 @@ Ngx stripper, an Angular pipe to clean up string from any languages construct
### Demo ### Demo
UNAVAILABLE https://next.plnkr.co/plunk/DGbwiDGvvMz8LBcg
### Installation ### Installation

View file

@ -1 +1,5 @@
<h2>Original html</h2>
<p>{{text}}<p>
<h2>Stripped html</h2>
<p>{{text | stripper:'html'}}<p> <p>{{text | stripper:'html'}}<p>

View file

@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css'] styleUrls: ['./app.component.css']
}) })
export class AppComponent { export class AppComponent {
text = '<h1>CIAOOOO</h1>'; text = `<div class ='exampe'><h1>example text very cool!<h1></div><h2>Wow</h2><br/>`;
} }

View file

@ -1,6 +1,6 @@
import {CommonModule} from '@angular/common'; import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core'; import {NgModule} from '@angular/core';
import {NgxStripperPipe} from './directives/ngx-stripper.pipe'; import {NgxStripperPipe} from './pipes/ngx-stripper.pipe';
@NgModule({ @NgModule({
declarations: [ declarations: [