title: How can I clear all the AngularJS $scope and $rootScope values within a single function?
body: <p>I need to clear all the <strong><code>$scope</code></strong> values while performing some operations.</p>
  
  <p>For eg: If I Click a <strong><code>"Signout"</code></strong> button to redirect to <strong><code>"signin"</code></strong> page, then all the <strong>$scope</strong> or <strong>$rootScope</strong> values in the session should be cleared.</p>
  
  <p>How can I achieve this?</p>