Skip to content

Commit

Permalink
Merge pull request #106 from anthonybriand/master
Browse files Browse the repository at this point in the history
fix(*): Add support of Angular 10
  • Loading branch information
codehippie1 authored Jul 27, 2020
2 parents cc68b35 + 08aecfa commit 5f93415
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Angular PDFJS viewer with Mozilla's ViewerJS. Supports Angular 2+ (Angular versions ^2.0.0 to ^9.0.0)
# Angular PDFJS viewer with Mozilla's ViewerJS. Supports Angular 2+ (Angular versions ^2.0.0 to ^10.0.0)
<p align="center">
<a href="https://www.npmjs.com/package/ng2-pdfjs-viewer">
<img src="https://img.shields.io/npm/dm/ng2-pdfjs-viewer.svg?style=flat" alt="downloads">
Expand All @@ -12,7 +12,7 @@

***Pull requests and contributions are much appreciated.***

This is a super simple angular 8 component for displaying pdfs inline(embedded) OR in a new tab along with a feature rich viewer. It uses mozilla's pdfjs viewer(v2.2.171) behind the scenes and supports angular version ^2.0.0 to ^9.0.0. Extremely lightweight, easiest to integrate and use, most reliable, this library has only one dependancy (@angular/core).
This is a super simple angular 8 component for displaying pdfs inline(embedded) OR in a new tab along with a feature rich viewer. It uses mozilla's pdfjs viewer(v2.2.171) behind the scenes and supports angular version ^2.0.0 to ^10.0.0. Extremely lightweight, easiest to integrate and use, most reliable, this library has only one dependancy (@angular/core).

## What is new?
1. **Direct access to underlying viewer** - Exposed PDFViewerApplication and PDFViewerApplicationOptions objects opens a whole world of customizable PDFJS and ViewerJS properties and methods, allowing to change them programmatically; thus producing a unique viewer experience.
Expand Down
4 changes: 2 additions & 2 deletions dist/README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Angular 8 PDFJS viewer with Mozilla's ViewerJS (Supports Angular 2/4/5/6/7/8)
# Angular PDFJS viewer with Mozilla's ViewerJS. Supports Angular 2+ (Angular versions ^2.0.0 to ^10.0.0)
<p align="center">
<a href="https://www.npmjs.com/package/ng2-pdfjs-viewer">
<img src="https://img.shields.io/npm/dm/ng2-pdfjs-viewer.svg?style=flat" alt="downloads">
Expand All @@ -12,7 +12,7 @@

***Pull requests and contributions are much appreciated.***

This is a super simple angular 8 component for displaying pdfs inline(embedded) OR in a new tab along with a feature rich viewer. It uses mozilla's pdfjs viewer(v2.2.171) behind the scenes and supports angular(2/4/5/6/7/8). Extremely lightweight, easiest to integrate and use, most reliable, this library has only one dependancy (@angular/core).
This is a super simple angular 8 component for displaying pdfs inline(embedded) OR in a new tab along with a feature rich viewer. It uses mozilla's pdfjs viewer(v2.2.171) behind the scenes and supports angular version ^2.0.0 to ^10.0.0. Extremely lightweight, easiest to integrate and use, most reliable, this library has only one dependancy (@angular/core).

## What is new?
1. **Direct access to underlying viewer** - Exposed PDFViewerApplication and PDFViewerApplicationOptions objects opens a whole world of customizable PDFJS and ViewerJS properties and methods, allowing to change them programmatically; thus producing a unique viewer experience.
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModuleWithProviders } from '@angular/core';
export * from './ng2-pdfjs-viewer.component';
export declare class PdfJsViewerModule {
static forRoot(): ModuleWithProviders;
static forRoot(): ModuleWithProviders<PdfJsViewerModule>;
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export * from './ng2-pdfjs-viewer.component';
]
})
export class PdfJsViewerModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<PdfJsViewerModule> {
return {
ngModule: PdfJsViewerModule
};
Expand Down

0 comments on commit 5f93415

Please sign in to comment.