Create a lightning component with custom listview with look up field as a parameter

I will be using Case list view for this example. Please follow the following steps: 1)  Create an apex class “CaseController”:

 

2)  Create a lightning component: OwnerListView.cmp

3) Click Controller and copy/past the following:

Save the component.

4) Create new lightning Component: CaseList.cmp

Click Save.

5) Create new Lightning Component: LookUP.cmp

6) Click Controller and copy/Paste the following:

Click save.

7) Create new Lightning Component: IndElement.cmp

8) Click Controller and copy/Paste the following:

Click Save.

9) Create new Lightning Event: SelectUser.evt

Click Save.

10) Add the OwnerListView.cmp to any flexipage and there you have it.