epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

ePub.js rendereTo rendering blank for Angular 15

Open rajibhalder opened this issue 3 years ago • 0 comments

Below is my code snippets: @Component({ selector: 'app-epub-reader', template: '

', styleUrls: ['./epub-reader.component.scss'] }) export class EpubReaderComponent implements OnInit, AfterViewInit { @ViewChild('area') area: ElementRef; book: any;

constructor(public element: ElementRef) { }

ngOnInit() {

}

ngAfterViewInit(): void { this.book = ePub('https://s3.amazonaws.com/moby-dick/moby-dick.epub'); var rendition = this.book.renderTo('area', {width: 600, height: 400}); var displayed = rendition.display(); } }

rajibhalder avatar Feb 06 '23 14:02 rajibhalder