File

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

Implements

OnInit

Metadata

Index

Methods
Inputs

Constructor

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

Inputs

model
Type : Payment
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-payfrom-label',
  templateUrl: './payment-payfrom-label.component.html',
  styleUrls: ['./payment-payfrom-label.component.css']
  //   host: {class: 'Payment'}
})
export class PaymentPayFromLabelComponent implements OnInit {
  @Input() payment: Payment;
  @Input() model: Payment;
  constructor(private materialService: MaterialService) {}

  ngOnInit() {
    this.materialService.render();
  }
}
<span id="paymentFromLabel">
    <span *ngIf="!payment.payFromAccountDisplayName || payment.payFromAccountDisplayName.length < 1">{{payment.payFromAccountName}}</span>
    <span *ngIf="payment.payFromAccountDisplayName && payment.payFromAccountDisplayName.length > 0">{{payment.payFromAccountDisplayName}}</span>
    - {{payment.payFromAccount | mask}}
</span>

./payment-payfrom-label.component.css

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""