how to delete $rootScope variable in angularjs?

Nimesh Vaghasiya picture Nimesh Vaghasiya · Dec 11, 2013 · Viewed 13.1k times · Source

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?

Answer

bevacqua picture bevacqua · Dec 11, 2013
delete $rootScope.tableformate