Feat: added plunker url; Feat: update example
This commit is contained in:
parent
fd2734d0da
commit
1c295b8bd3
5 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
|
<h2>Original html</h2>
|
||||||
|
<p>{{text}}<p>
|
||||||
|
|
||||||
|
<h2>Stripped html</h2>
|
||||||
<p>{{text | stripper:'html'}}<p>
|
<p>{{text | stripper:'html'}}<p>
|
||||||
|
|
|
||||||
|
|
@ -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/>`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue