import {Component, EventEmitter, Input, Output} from "@angular/core"; @Component({ selector:'payment-tab', template:`

Payment

Enable
Paypal Email
Currency
Enable Paypal Sandbox

Important: Set this to true only for testing and only if you want to use the paypal sandbox.

While this box is checked you won't be able to receive real payments through paypal.

Add Item
` }) export class PaymentTabComponent{ //region Options Property private _options: PaymentOptions = null; @Output() OptionsChange = new EventEmitter(); @Input() get Options(): PaymentOptions { return this._options; } set Options(value: PaymentOptions) { let previousValue = this._options; this._options = value; if (value != previousValue) this.OptionsChange.emit(value); } //endregion AddBankAccount() { if(!this._options.BankTransferOptions.Enable) return; this.Options.BankTransferOptions.BankAccounts.push({ AccountName:'', AccountNumber:'', BankName:'', BICSWIFT:'', IBAN:'', SortCode:'' }) } }