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 {
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.530latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.530
0.0.40
0.0.20
0.0.10

Package Sidebar

Install

npm i ngx-simple-print

Weekly Downloads

28

Version

0.0.5

License

none

Unpacked Size

57.5 kB

Total Files

23

Last publish

Collaborators

  • josueaqp92