I have defined an <apex:remoteObjectModel> in my .page file and can access custom objects through new SObjectModel.ObjectName().retrieve(). However, the fields in these objects are accessed as


Thus, if I bind this to HTML attributes using Angular, say ng-bind or ng-model this is not particularly well suited. In particular, I see no appropriate way to bind this to an input text field, etc. Also, this is very verbose. Is there any way or alternative to remote objects that exposes the objects in a way more suitable for Angular?

  • Try peeking into object._props property. Should it maybe contain the field values? – MLucci Dec 14 '15 at 16:22
  • @MLucci Um. Well. Thanks. (embarrassed). Do you want to turn this comment into an answer? – Simon Fischer Dec 14 '15 at 16:24
  • Not needed - too dirty to be an official one at least... ;) – MLucci Dec 14 '15 at 16:51

if you are using AngularJS on Visualforce with RemoteObjects have a look at ngRemote: https://github.com/florianhoehn/ngRemote

It generates angular services for each remote object definition.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.