Fixes
- [#196] - ng2-pdf-viewer breaks the AOT build with Angular CLI 1.5.0
- [#187] - ng build fails when AOT is enabled
BREAKING CHANGES
Now ng2-pdf-viewer
exports Module
instead of Component
. That means you have to import PdfViewerModule
instead of PdfViewerComponent
.
import { PdfViewerModule } from 'ng2-pdf-viewer';
@NgModule({
imports: [PdfViewerModule]
})
export class YourModule() {}