Dear experts: I am using toastr.success and toastr.warning and they are working fine. BUT it is not working with toastr.confirm. I have added the jquery,angularjs and toastr libraries . Any idea or help Thanks in advance.
<tbody>
<tr ng-repeat="a in all | filter : table" ng-click="showInEdit(a)" ng-class="{selected1:a === selectedRow}" style="cursor:pointer;">
<td>{{a.SpecName}}</td>
<td>{{a.DegName}}</td>
<td>{{a.DocName}}</td>
<td>{{a.Service_Type}}</td>
<td>{{a.Service_Group}}</td>
<td>{{a.Sub_service}}</td>
<td style="text-align: center; width: 50px">
<a href="">
<img ng-click="edit();$event.stopPropagation();$event.preventDefault();" src="assets/images/pencil.png" />
</a>
<a href="">
<img ng-click="delete(a)" src="assets/images/cross.png" />
</a>
</td>
</tr>
</tbody>
in controller
$scope.delete = function (sys) {
toastr.confirm('Are you sure?', {onOk: (Doctorssetup.delete(sys.Sys_Key)) , onCancel: ({}) });}
error is TypeError: toastr.confirm is not a function at ChildScope.$scope.delete (AnglController.js:288)