import { Component } from '@angular/core';
import { NavController } from '@ionic/angular';

@Component({
    templateUrl: './opensource-licences.component.html'
})
export class OpensourceLicencesComponent {
    constructor(
        private navCtrl: NavController,
    ) {}

    items = [
        { name: 'ionic-framework' },
        { name: 'angular-framework' },
        { name: 'swiper.js' },
        { name: 'ng2-pdf-viewer' },
        { name: 'file-saver' },
        { name: 'EUPL' },

    ];

    onNavigate(url: string) {
        this.navCtrl.navigateForward(url);
    }

    onClickedItems(clickedItem: string[]): void {
        console.log('Selected Item - ', clickedItem);
        this.onNavigate('screen/about/opensource-licences/licence-details');
    }

}
