Hi guys, in this lesson, we will implement homepage component and will. In this page we will list all courses we table and we can see the details of curses to implement it. We will call core service methods from here. First of all in secret part, we will import cursors Secondly, we will input user service Then we will input user model class. Later we will import transaction model class. In data block, we will create our variables.
Our first variable will be courses our second variable will be couldn't use Then we will set current users and courses from Admin service in created function created function will be automatically called after the Data View component is created in this method. First of all we will set current user video from user service to get it from user service as observable, we will subscribe it then we will set it to current users. Then we will call find all cursors from cursors. And we will set courses with response Now we can create our methods our first method will be enroll. In this method, we will create a transaction and we will call call service method. But first of all we should check current user is now or not Then we will call core service method Are seconds minutes methods will be navigator course Detail page We will set the table course to local storage.
We will use router property of view which parameters our parameter will be course ID. Okay, that's all about home controllers implementation. Now we will implement Home view in home view, we will show all courses with bootstrap table. First of all, we will create a containers then we will show courses with table Okay, that's all about the implementation. Thank you.