import { Component } from '@angular/core' ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' , styleUrls : [ './app.component.scss' ] } ) export class AppComponent { title = 'Main Application' ; points = 1 ; plus1 ( ) { this . points ++ ; } reset ( ) { this . points = 0 ; } }