EventsService Changes. Attendees Page. Others.

This commit is contained in:
Paulo Pinto
2020-08-25 12:47:49 +01:00
parent 751b8dd7c5
commit 11fdfe1e54
78 changed files with 201 additions and 1187 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();
}
}