function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
msreekmattmsreekmatt 

smartsync using angularjs

Hi
Iam building a cordova application using force.com hybrid sdk and want to support offline data (smartstore) and smartsync.

is it possible to use smartsync without backbone model ,since the entire application will be built using angularjs. or can we use both angularjs and backbone ?
Raja RaoRaja Rao
You should be able to use just AngularJS. SmartSync.js has two parts: 1. Core APIs that does the sync and then a Backbone.js layer that sits on top of core-apis see line#1265 (https://github.com/forcedotcom/SalesforceMobileSDK-Shared/blob/master/libs/smartsync.js#L1265). So, you can ignore everything in the Backbone layer (i.e. entire if backbone exists condition) and instead use the core APIs directly in your AngularJS app. 
msreekmattmsreekmatt
Thank you Raja, any example code?
Sudhindra ChausalkarSudhindra Chausalkar
I am doing the same thing as @msreekmatt . I am using ionic salesforce starter pack -- link (https://github.com/driftyco/ionic-starter-salesforce)

I tried using smartsync.js directly but all efforts were in vein.  Please suggest examle that i can refer to.