Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 688 Bytes

usage.md

File metadata and controls

34 lines (25 loc) · 688 Bytes

Piper | Usage

  • Component ()
  • Directive ()
  • Service ()
  • Pipe (qlTruncate, qlSanitize)

app.module.ts

import {PiperModule} from '@qrsln/piper';

@NgModule({
  imports: [PiperModule, /*...*/],
})

Usage

<!--lbSanitize-->
<span [innerHTML]="description|qlSanitize"></span>
<td *ngIf="i>0" [innerHTML]="entry.attributes[i] | lbSanitize"></td>

<!--lbTruncate-->
{{description|qlTruncate:size}}

* | lbTruncate:40:'...:p'
* | lbTruncate:40
* | lbTruncate