February 2017
Beginner to intermediate
294 pages
6h 9m
English
In order to respond to the Calculate IDF button inside the template, all we need to do in the component is catch the click event and call the related function from the service. So just add the onIDFs() function as follow:
// src/app/evidence/evidence.component.ts
// ...
export class EvidenceComponent implements OnInit{
// ...
onIDFs() {
this.evidenceService.saveIDFs();
}
}
However, on the service side, we have a lot of work to do. We can summarize the required steps for IDF calculations as follow:
Read now
Unlock full access