added ngResource dependency