update to new version
integrate ng-resource and directives