import { Component } from "@angular/core" ; @ Component ( { selector : "console" , templateUrl : "./console.html" } ) export class ConsoleComponent { private value : string = "" ; public print ( value ) { this . value += value ; } private clear ( ) { this . value = "" ; } }