mobile app – Nativescript-pdf-view does not work correctly with Angular

I've tried using the nativescript-pdf-view plugin (https://www.npmjs.com/package/nativescript-pdf-view) for my mobile application project (nativescript-angular ). In one way or another, PDFView is not rendered.

I've tried to hard code the URL of the view or load it from the event (typing)

In the app.module.ts, I have this

import {PDFView} from & # 39; nativescript-pdf-view & # 39 ;;
import {registerElement} from 'nativescript-angular & # 39 ;;
registerElement (& # 39; PDFView & # 39 ;,) => PDFView);

Hard coded URL in the view


Load it from the event (typescript)

onViewAttachment ()
{
this.attachSrc = this.detailMessage.attachments.length> 0?
this.detailMessage.attachments[0] : & # 39;
if (this.attachSrc.length> 0)
{
this.displayDetail = false;
this.displayAttach = true;
}
other
{
this.displayDetail = true;
this.displayAttach = false;
}
}


    
        
    
    
   

    

I was waiting for the pdf to be returned. In a way, it is empty at the moment.