Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92028645
tln-page-version-view.component.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 16, 18:17
Size
1 KB
Mime Type
text/x-java
Expires
Mon, Nov 18, 18:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22365827
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
tln-page-version-view.component.ts
View Options
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { TlnQueryServiceInterface} from '../../models';
import { TlnQueryService } from '../../services';
import { DataHandler } from '../../data_handler';
import { TlnTextGeneticOrder} from '../../datatypes/text_version';
@Component({
selector: 'tln-page-version-view',
templateUrl: './tln-page-version-view.component.html',
providers: [ TlnQueryService ],
styleUrls: ['./tln-page-version-view.component.css']
})
export class TlnPageVersionViewComponent implements OnInit {
/**
* OPTIONAL pass a queryService with method
* {@link /interfaces/TlnQueryServiceInterface.html#getData|getData}
* to TlnPageViewComponent.
**/
@Input() queryService: TlnQueryServiceInterface;
@Output() textGenesisSelected = new EventEmitter<string>();
@Input() current_iri: string;
dataHandler: DataHandler = new DataHandler(this);
geneticOrders: TlnTextGeneticOrder[] = [];
constructor(private localQueryService: TlnQueryService) { }
ngOnInit() {
let tlnQueryService = (this.queryService != null) ? this.queryService : this.localQueryService;
this.dataHandler.addHandler('geneticOrders', { 'handler': TlnTextGeneticOrder});
this.dataHandler.setQueryService(tlnQueryService);
this.dataHandler.getData('geneticOrders', this.current_iri);
}
}
Event Timeline
Log In to Comment