| /******************************************************************************** |
| * Copyright © 2018 Mettenmeier GmbH. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; |
| |
| @Component({ |
| selector: 'ok-alert', |
| templateUrl: './alert.component.html', |
| styleUrls: ['./alert.component.scss'] |
| }) |
| export class AlertComponent implements OnInit { |
| @Output() |
| decision: EventEmitter<boolean> = new EventEmitter<boolean>(); |
| |
| constructor() { } |
| |
| ngOnInit() { |
| } |
| |
| decide(decision) { |
| this.decision.emit(decision); |
| } |
| |
| } |