Unsubscribe in angular


#1

I found the following lines in the angular meteor docs:

  $meteor.subscribe('todos').then(function(subscriptionHandle){
    // Bind all the todos to $scope.todos
    $scope.todos = $meteor.collection(Todos);

    console.log($scope.todos + ' is ready');

    // You can use the subscription handle to stop the subscription if you want
    subscriptionHandle.stop();
  });

If I do this, $scope.todos will get empty an the listed totos disappear just right after the page is loaded. Where is the right place to subscribe and unsubscribe in angular?