This commit is contained in:
Paulo Pinto
2020-08-25 14:08:13 +01:00
parent 9c49fb63b7
commit b57a27e466
78 changed files with 204 additions and 1194 deletions
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { AttachmentsService } from 'src/app/services/attachments.service';
import { Attachment } from 'src/app/models/attachment.model';
import { ActivatedRoute } from '@angular/router';
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
@Component({
selector: 'app-attachments',
@@ -12,7 +13,7 @@ export class AttachmentsPage implements OnInit {
loadedEventAttachments: Attachment[];
constructor(private attachamentsService: AttachmentsService, private activatedRoute: ActivatedRoute) { }
constructor(private attachamentsService: AttachmentsService, private activatedRoute: ActivatedRoute, private iab: InAppBrowser) { }
ngOnInit() {
/* Emit new data when something changes */
@@ -32,4 +33,10 @@ export class AttachmentsPage implements OnInit {
});
}
viewDocument(documenturl:string)
{
const browser = this.iab.create(documenturl);
browser.show();
}
}