how to delete $rootScope variable in angularjs?

13.3k Views Asked by At

In a controller, I had defined $rootScope.tableformate variable to fill data in a popup.

After filling popup data $rootScope.tableformate is not used. How to delete this variable?

1

There are 1 best solutions below

0
On BEST ANSWER
delete $rootScope.tableformate