Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
angular-pdf-viewer
Advanced tools
Readme
View all the directives in action at https://PriyatoshMohapatra.github.io/Angular-PDF-Viewer
Install above dependencies via npm.
Now install angular-pdf-viewer
via:
npm install --save angular-pdf-viewer
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle. In your systemjs config file,map
needs to tell the System loader where to look forangular-pdf-viewer
:
map: {
'angular-pdf-viewer': 'node_modules/angular-pdf-viewer/bundles/angular-pdf-viewer.umd.js',
}
Once installed you need to import the main module:
import { LibModule } from 'angular-pdf-viewer';
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice LibModule .forRoot()
):
import { LibModule } from 'angular-pdf-viewer';
@NgModule({
declarations: [AppComponent, ...],
imports: [LibModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
Other modules in your application can simply import LibModule
:
import { LibModule } from 'angular-pdf-viewer';
@NgModule({
declarations: [OtherComponent, ...],
imports: [LibModule, ...],
})
export class OtherModule {
}
Copyright (c) 2018 Priyatosh Mohapatra. Licensed under the MIT License (MIT)
FAQs
Viewing PDF on any browser
The npm package angular-pdf-viewer receives a total of 6 weekly downloads. As such, angular-pdf-viewer popularity was classified as not popular.
We found that angular-pdf-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.