How to pass data between two components in Angular 2
<p>I am looking for solution to pass data to another component and similarly access methods of another component in other (both are parallel components).</p>

<p>For example i have two components <code>home.ts</code> and <code>map.ts</code>.
I get some data into <code>map.ts</code> and need to pass that in <code>home.ts</code> and vice versa.</p>