wireing up local angular-resource