• mattpopeftusa
  • NEWBIE
  • 10 Points
  • Member since 2015
  • Fair Trade USA

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

Hello, we are building an AngularJS single page application that is hosted on the force.com platform and served to users through a community. It's all working great other than a situation where the users session expires and they try to navigate the Angular app. Since there is no page load when they navigate the app but it does make a JS remoting call to an Apex method the call to the method fails but the user doesn't get redirected to the community login page. 

Has anyone applied a straight forward solution to this challenge? Figuring it will come down to catching certain errors in AngularJS related to remoting errors and then redirecting in those conditions.

Thanks

Hello, we're embarking on a SPA AngularJS application development project that will be hosted on the force.com platform and are working to get the development and deployment process as streamlined as possible.  

We are possibly going to use Kevin Poorman's ngForce library and will likely going to leverage JavaScript Remoting which will give us a blend of Apex Classes, at least 1 Visualforce page and a bunch of JavaScript, CSS and HTML files wrapped up in a static resource.  

I'm tryting to sort out the local development experience and am concerned that even a streamlined ANT/Grunt/etc package and deploy to force.com process will make the development process frustrating for developers. As I understand it, even a simple CSS or JS change will require a package and deploy and then a browser refresh to see reflected.  

Has anyone seen any development or DevOps models that are ideal for rapid JS development on the force.com platform? We're still looking at the REST API option since that would allow developers to run the application on their machine and see changes very quickly, but are interested in leveraging all that we can from the force.com platform (seamless authentication, JavaScript Remoting, no API calls, etc) if possible.  

Thanks for any input and tips on how to best support rapid JS application development on force.com.

Matt

PS: Seems like there should be a JavaScript devlopment category in the forum since there is a lot of interest around these topics.
Hello, I'm seeing a lot here in the forum and in Salesforce documentation about offline (store and sync) functionality not being available in HTML5 mobile applications using the API unless they are hybrid mobile apps.  

However, this example application written using only HTML5 techology provides just that:  
https://github.com/ForceDotComLabs/mobile-ui-elements 

Example running on Heroku here:  https://sfdc-sobject-editor.herokuapp.com/  

The documenation for this application says it uses smartsync and smartstore for secure offline storage and sync but like I said I've seen everywhere else that this isn't possible. Can someone provide some insight on this?

Thanks

Hello, we are building an AngularJS single page application that is hosted on the force.com platform and served to users through a community. It's all working great other than a situation where the users session expires and they try to navigate the Angular app. Since there is no page load when they navigate the app but it does make a JS remoting call to an Apex method the call to the method fails but the user doesn't get redirected to the community login page. 

Has anyone applied a straight forward solution to this challenge? Figuring it will come down to catching certain errors in AngularJS related to remoting errors and then redirecting in those conditions.

Thanks

Hello, I'm seeing a lot here in the forum and in Salesforce documentation about offline (store and sync) functionality not being available in HTML5 mobile applications using the API unless they are hybrid mobile apps.  

However, this example application written using only HTML5 techology provides just that:  
https://github.com/ForceDotComLabs/mobile-ui-elements 

Example running on Heroku here:  https://sfdc-sobject-editor.herokuapp.com/  

The documenation for this application says it uses smartsync and smartstore for secure offline storage and sync but like I said I've seen everywhere else that this isn't possible. Can someone provide some insight on this?

Thanks