ngx-simple-print
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

NgxSimplePrint

This is a simple directive to print html section with angular.

DEMO

Try the Demo

Installation

npm install ngx-simple-print --save

Usage

Import the module into your app.module.ts file.

import { NgxSimplePrintModule } from 'nx-simple-print';
 
@NgModule({
  imports: [ NgxSimplePrintModule ]
})
export class AppModule {
}

And you can use the directive in your app

import { Component } from '@angular/core';
 
@Component({
  selector: 'app',
  template: `
    <button
        roNgxSimplePrint
        [printContentId]="'contentToPrint'"
    >Print</button>
    <div id="contentToPrint">
        my printable content...
    </div>
  `,
})
export class AppComponent {
}

Package Sidebar

Install

npm i ngx-simple-print

Weekly Downloads

29

Version

0.0.5

License

none

Unpacked Size

57.5 kB

Total Files

23

Last publish

Collaborators

  • josueaqp92