I have seen various questions here, but they are of ng-checked, which are not relevant to me I guess. I have a fairly simple problem. Here's my HTML.
<label><input type="checkbox" value="" ng-checked="dothis" id="alcohol">Serves alcohol</label>
I am not sure how to wrap the function in angular if its checked. Basically it should be like.
if(checked){
//do this
}
else{
//do that
}