In this episode of AEM In Action, I will try to walk you through the development of a component along with Sling Model. Will also try to do TDD for Sling Models. This video is going to be pretty long since I tried to do development from scratch. We will work together to develop the component and sling model in AEM. Sling Models are pure annotation driven POJOs. Since this video is going to be really long, please make use of the chapters below so that you can skip to parts which is important for you. Once again thanks .
0:00 Introduction - a brief history of my experience with JSPs
6:25 Component explanation
9:20 Add component on to the editable template and page
12:10 JSONs for TDD
15:35 Write the Sling Model
18:10 Create the test class
26:20 PostConstruct Annotation
35:05 Modify test
39:05 Modify HTL to add Sling Model
41:13 Test the page
Read Full Blog
Please use this thread to ask the related questions.