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 04-04-2021
21

Submit your answer