use angular-resource for bindings