import { Component } from '@angular/core' ; @ Component ( { selector : 'thy-vote-basic-example' , templateUrl : './basic.component.html' } ) export class ThyVoteBasicExampleComponent { constructor ( ) { } vote_count = 5 ; vote_count1 = 134 ; has_voted = true ; toggleVote ( event ) { this . has_voted = ! this . has_voted ; } }