import { Component } from '@angular/core' ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' , } ) export class AppComponent { handlePin ( ) { console . log ( 'pinned' ) ; } handleUnpin ( ) { console . log ( 'unpinned' ) ; } }