call method from one component to another component angular 4 code example

Example 1: pass value from one component to another in polymer

<dom-module id="host-element">
  <template>
    <target-element target-property="{{hostProperty}}"></target-element>
  </template>
</dom-module>

<my-element my-property="{{hostProperty}}">
<a href$="{{hostProperty}}">

Example 2: hyperlink with a controller function in lightning component

<a href="javascript:void(0)" onclick="{!c.doSomething}">
            Click me to do Something 
</a>