mark.le...@gmail.com
unread,Jul 24, 2012, 5:43:04 AM7/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Hello fellow angular developers,
first of all, I'd like to start by saying that I really enjoy working with angularjs. At long last a framework which got all the crucial concepts right.
That being said, I am wondering why you decided to introduce $resource as a means for easily assigning future resource responses to the scope, rather than opting for supporting promises in a general manner within the scope.
I'd much rather use the lightweight $http api and write:
$scope.myResource = $http.get( 'http//...' )
rather than have to write
$http.get( 'http//...' ).success( function( myResource ) {
$scope.myResource = myResource;
}
as is the case now.
Best Regards
Mark Lehmacher