AngularJS for Component, resource module