import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'cm-progress-doc-5', templateUrl: './progress-doc-5.component.html', styleUrls: ['./progress-doc-5.component.css'] }) export class ProgressDoc5Component implements OnInit { _percent = 0; increase() { this._percent = this._percent + 10; if (this._percent > 100) { this._percent = 100; } } decline() { this._percent = this._percent - 10; if (this._percent < 0) { this._percent = 0; } } constructor() {} ngOnInit() {} }