Search code examples
angularjsrootscope

how to delete $rootScope variable in angularjs?


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?


Solution

  • delete $rootScope.tableformate