'Im trying to integrate a js library(epub.js) into angular application,No errors and blank screen

import { Component } from '@angular/core';
declare const ePub: any;
export class AppComponent {
  title = 'epubIntegration';
  epub: any = null;
 constructor(){
   var book = ePub("https://s3.amazonaws.com/moby-dick/moby-dick.epub");
   var rendition = book.renderTo("area", {width: 600, height: 400});
   var displayed = rendition.display();
  }}

This is my code,there is no errors, The screen seems to be blank enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source