login functionality done
This commit was merged in pull request #1.
This commit is contained in:
@@ -10,10 +10,15 @@ import { PaymentService } from "../../services/payment.service";
|
||||
export class PaymentsComponent implements OnInit {
|
||||
payments: PaymentModel[];
|
||||
options: any;
|
||||
companyLocalStorage: any;
|
||||
|
||||
constructor(private paymentService: PaymentService) {
|
||||
this.companyLocalStorage = JSON.parse(
|
||||
localStorage.getItem("companyData") || "{}"
|
||||
);
|
||||
|
||||
this.paymentService
|
||||
.getPaymentById(1)
|
||||
.getPaymentById(this.companyLocalStorage.id)
|
||||
.subscribe((payment: PaymentModel[]) => {
|
||||
this.payments = payment;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user