I am using Angular 4 and on my template I have a checkbox and a div.
In my .ts file I have 2 functions.
// html
<input type="checkbox" class="custom-control-input" (change)="function2($event)">
<div (click)="function1()">some text here</div>
This I have the ts file
// .ts
function1() {
// check if the checkbox is checked.
}
function2(event) {
// do something here
}
From function1 how can I check if the checkbox is checked or not?