File

src/app/components/payments/payment-payto-label/payment-payto-label.component.ts

Implements

OnInit

Metadata

Index

Methods
Inputs

Constructor

constructor(materialService: MaterialService)
Parameters :
Name Type Optional
materialService MaterialService No

Inputs

payment
Type : Payment

Methods

ngOnInit
ngOnInit()
Returns : void
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import 'rxjs/add/operator/filter';
import { Payment } from '../../../models';
import { MaterialService } from '../../../providers';

@Component({
  selector: 'app-payment-payto-label',
  templateUrl: './payment-payto-label.component.html',
  styleUrls: ['./payment-payto-label.component.css']
})
export class PaymentPayToLabelComponent implements OnInit {
  @Input() payment: Payment;
  constructor(private materialService: MaterialService) {}

  ngOnInit() {
    this.materialService.render();
  }
}
<span id="paymentToLabel">
    <span *ngIf="!payment.displayName || payment.displayName.length < 1">{{payment.payToName}}</span>
    <span *ngIf="payment.displayName && payment.displayName.length > 0">{{payment.displayName}}</span>
    - {{payment.payToBankAccount | mask}}
</span>

./payment-payto-label.component.css

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""