Is it the parts like this that you don't like?
  $scope.findUsers = function() {
    User.findAll();  
  }

This can be simplified to:
$scope.findUsers = User.findAll();

You can do
$scope.userFactory = User;

This means you only have to assign a few things to the view however your 
view then has access to all of the User factory methods. If you don't like 
that perhaps you can wrap up the find users functionality into a directive? 
You don't have to assign anything to the view that way and the factories 
are singletons so any changes in the User factory will be available in your 
controllers and elsewhere too.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to