I try to build mobile app and i choose Parse as my Backend service.
But which one i should choose ? using Parse Javascript API or REST API ?
And there is description that say…
" There are a few things that are not ideal about the existing Parse JavaScript API in AngularJS. The existing API is modeled after Backbone Models and the main problem is setters are used instead of object properties. instance.set(‘property’, ‘value’) doesn’t really fit well with things like ng-model. "
from the tutorial it use $http and ngResource to communicate to backend.
Another tutorial suggest…
"Wrap Parse asynchronous calls inside AngularJS $q promises, instead of just performing Parse queries directly in your models or controllers. One of the benefits is that your data changes will be digested by AngularJS automatically. "
Any experience with Parse or any suggestion???
Thks in advance.
but the example using javascript api and using controller without factory service.
Is there any example using ionic+parse and wrap it with angularjs factory service such as parseUserService and facebookService…
So ur using Javascript API.
Any comment regarding to above statement about…
" There are a few things that are not ideal about the existing Parse JavaScript API in AngularJS. The existing API is modeled after Backbone Models and the main problem is setters are used instead of object properties. instance.set(‘property’, ‘value’) doesn’t really fit well with things like ng-model. "
Also is it better to use $q than $resource ???
I am still beginner and need extra to learn and understanding.
function LoadRouteData() {
RoutedataService.getRoutedata() // Get Route Data for all route numbers
.then(function (data) {
RoutedataService.Routedata = data;
if (RoutedataService.Routedata.length > 0) {
showRoutes(GeoService.Geomap, data);
}
},
function (err) {
// HandleError(err);
});
}
you can then access the routedata points like RouteData[i].routePoint etc…
Could u give me example/ explanation about “wrap all of the parse models so they can be used more effectively in angularJS”.???
In my case using ionic+parse and I want to do a social login. What is the best practise?? Using ngcordova oauth or facebook connect plugin or Other ???
Do u have any sample project using ionic + parse that u can share to me like at github???
From above sample about Object.defineProperty still hard for me to understand and still need to learn more.
What the pros using that kind Object property?? because there is little example using it.
any sample apps using angular parse patch ??
already saw readme but still dont know how to apply the patch to our application.
still need to build factory service or no need factory service just controller is enough???
Using REST API seems to give your app more flexibility for future changes (changing backends to Mbaas like Azure Mobile for instance; it has a REST API as well). It makes you less “boxed in”. If that is a non issue you could use the js version as well, but i’d recommend the brandid wrapper to save you some time.