Apex Controller-What? Do we really need it?
Think of Apex Controller as a class with different methods which have been exposed over the web so that our lightning component can connect to them. These methods can fetch data from the database and send back to the component or receive some data from the component and save it into the database. All in all, a lightning component’s connection to the server-side is an Apex Controller.
Do we really need it?
Yes and No. In earlier versions/releases of Salesforce, we had to use an Apex Controller for all sorts data transactions, even for simple save and retrieve without any complex processing. People coming from Salesforce classic would be like why don’t they have a standard controller like visual force pages? Eventually Salesforce heard you and Carolyn Grabill (twitter handle @CarolynCodes) came up with Lightning Data Service! I will talk about it in detail in my upcoming posts but for now just think of it like a standard controller using which you can do most of the data retrieval and insertion for an average straight record without any processing logic. In such a scenario, you won’t be needing an Apex Controller. Sounds fun right?
So enough of blabbering and it is time to finally get to some code! Wooohoooo!! In my upcoming post I will demonstrate how Lightning Data Service (LDS) works and how a simple Apex Controller works.
You should take part in a contest for one of the best blogs on the web. I will recommend this site!
Appreciate it for this marvelous post, I am glad I discovered this website on yahoo.
I can see that your blog probably doesn’t have much visits.
Your posts are interesting, you only need more new
visitors. I know a method that can cause a viral effect
on your site. Search in google: Jemensso’s tricks
Hi, everything is going fine here and ofcourse every one is sharing data, that’s truly
excellent, keep up writing.
Write more, thats all I have to say. Literally, it seems as though
you relied on the video to make your point. You obviously know what youre talking about, why throw
away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?
Pretty nice post. I just stumbled upon your weblog and
wished to say that I’ve really enjoyed surfing around your blog
posts. In any case I’ll be subscribing to your feed and I hope you write again very soon!
Thanks for a marvelous posting! I genuinely enjoyed reading it, you are a great author.
I will be sure to bookmark your blog and will come back down the road.
I want to encourage continue your great posts, have a
nice day!
I’m extremely impressed with your writing skills as well as with the
layout on your blog. Is this a paid theme or did you modify it yourself?
Anyway keep up the excellent quality writing, it is rare to see a nice blog like this
one today.
Thanks in favor of sharing such a pleasant thought, paragraph
is good, thats why i have read it completely
I’m truly enjoying the design and layout of your site.
It’s a very easy on the eyes which makes it much more pleasant
for me to come here and visit more often. Did you hire out a developer to create your theme?
Fantastic work!
I have read so many articles or reviews regarding the blogger lovers however
this paragraph is actually a nice piece of writing, keep it up.