Currently, I am working on building a new Angular 2 application.
Within the home.component.ts file, there is a small form that has been designed as shown in the image linked below https://i.sstatic.net/nimDm.jpg
After the user clicks on the Submit button, the Datatable should load with the relevant results. This functionality is handled by a separate component called result.component.ts
You may refer to the appearance of the loaded Datatable by clicking on this link: https://i.sstatic.net/YcjCE.jpg
At this point, I am considering the best approach for invoking the result.component from within the home.component. It is important that the first component passes the resulting dataset to the second one seamlessly.