I want to create a single page application in salesforce. Somebody suggested me to use AngularJS, but I heard that salesforce recently introduced lightening components which can be used to build single page applications, I want to work my application seamlessly in desktop as well as in my mobile, please suggest me a better solution.
Thanks in advance.
In salesforce we can use both AngularJS and Lightening Components (to an Extent) to build single page application. Both Approach have its on limitations and advantages . In the case of AngularJS Its have some limitation when we handling huge amount of data. Lightning components are salesforce provided functionality and its will suit efficiently with any salesforce application. the only problem currently with lightening components is that its is not available in mobile devices. Compared to lightening components AngularJS Application have better performance.
I suggest you to Use AngularJS and do Consider efficiently the case of handling large amount of data.
Yes, We can use Apex Classes for that, No there is no special Limitation for that, but we do we have to consider the governor limits.
also we can use the visualforce remoting to fetch data from the controller class. Or we can write factory methods in angularJS .
There is also some custom built library’s that we can use something like ngForce etc.
Yes , There thing to consider in salesforce ,Please reference the following blog for more about implementing angularJS in salesfore.
You can build single page applications using lightening components. This will be the easy way to create single page applications.
There are little more things to consider in salesforce for angularJs. Please refer the following blog to know how to develop angularjs application in salesfore in detail.
I am trying to implement AngularJS in my Salesforce org , but it didn’t works. I referred angular JS own site for the tutorial. Is there anything particular to do with salesforce ?? please help me.
This is my code ,
<p>Name : <input type=“text” ng-model=“name”></p>
But this same code works in my local.
Thanks in advance .