How to Select All checkboxes In Angular js

html File Code <input id="selectall_checkbox" type="checkbox" (change)="displayDate(this)"> Template File code displayDate(){ if($("#selectall_checkbox").prop("checked")) { $(".inp-cbx").each(function(){ $(".inp-cbx").prop("checked", true); }) }else{ $(".inp-cbx").each(function(){ $(".inp-cbx").prop("checked", false); }) } } Anyone Have Answer of this,Please Suggest me.
Faisal Khan
Asked 14-07-2024
36

Submit your answer