author-detail.page.ts 924 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
import {NavController} from '@ionic/angular';
import {CorpusMC} from 'src/app/models/corpusMC';
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import {HelperService} from '../helper.service';
import {CorpusService} from 'src/app/corpus.service';
import {HttpClient} from '@angular/common/http';

@Component({
10 11 12
    selector: 'app-author-detail',
    templateUrl: './author-detail.page.html',
    styleUrls: ['./author-detail.page.scss'],
13 14
})
export class AuthorDetailPage {
15
    HelperService = HelperService;
16

17 18 19 20 21
    constructor(public navCtrl: NavController,
                public corpusService: CorpusService,
                public translate: TranslateService,
                public http: HttpClient) {
    }
22

23 24 25 26
    showPossibleReferences(corpus: CorpusMC) {
        this.corpusService.saveNewCorpus(corpus);
        HelperService.goToTextRangePage(this.navCtrl).then();
    }
27
}