import { Component , OnInit , Input , Output , EventEmitter } from '@angular/core' ; @ Component ( { selector : 'app-link' , templateUrl : './link.component.html' , styleUrls : [ './link.component.scss' ] } ) export class LinkComponent { constructor ( ) { } @ Output ( ) onClickInner = new EventEmitter ( ) ; linkClicked ( $event ) { this . onClickInner . emit ( ) ; } }