我是Angular js的新手。我正在尝试显示错误消息视图toaster()
。我在谷歌搜索,但我没有找到正确的结果。当我点击cancel()
按钮时,我会收到一个错误,说烤箱未定义为。有没有其他方法来定义烤面包机
HTML:<button class="btn btn-secondary" ng-show="editMode" ng-click="toggle_cancel()"> Cancel </button>
角JS:
$scope.toggle_erase = function(information){
toastr.toggle_erase('Are you sure want to delete ?')
$scope.hideDelay(3000):
}
你需要在代码中包含'toastr'。说明在这里 - https://github.com/CodeSeven/toastr –