How to remove scope variable if I pass it into function without calling it from $scope?
// controller
$scope.user_id = 1;
$scope.example = function(uid) {
// remove $scope.user_id without accessing it like a scope
// smth like
uid = null; // won't work
};
// html
<div ng-click="example(user_id)">Click me!</div>
So I want to have completely isolated function