From 365d5f0637ea89a0779db68f7e5e924e5f935482 Mon Sep 17 00:00:00 2001 From: Piyush Upadhyay <35401775+piyush21upadhyay@users.noreply.github.com> Date: Tue, 26 Nov 2019 13:51:05 +0530 Subject: [PATCH] Update remove method as it was throwing error.. Updated Plunker http://plnkr.co/edit/2hqSGn5r4I3RU2BMlmQF?p=preview --- misc/tutorial/113_adding_and_removing_columns.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tutorial/113_adding_and_removing_columns.ngdoc b/misc/tutorial/113_adding_and_removing_columns.ngdoc index 65ccfdf302..7ccc1a3e37 100644 --- a/misc/tutorial/113_adding_and_removing_columns.ngdoc +++ b/misc/tutorial/113_adding_and_removing_columns.ngdoc @@ -43,7 +43,7 @@ For better performance with the following example, you can choose to load the ui }; vm.remove = function() { - vm.columns.splice($scope.columns.length-1, 1); + vm.columns.splice(vm.columns.length-1, 1); }; vm.add = function() {