Big Chunk of updates on way to making the sales portion working
This commit is contained in:
22
bookie/src/app/sales/bills/bills.component.ts
Normal file
22
bookie/src/app/sales/bills/bills.component.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { Table } from "../../core/table";
|
||||
|
||||
@Component({
|
||||
selector: 'app-bills',
|
||||
templateUrl: './bills.component.html',
|
||||
styleUrls: ['./bills.component.css']
|
||||
})
|
||||
export class BillsComponent implements OnInit {
|
||||
list: Table[];
|
||||
|
||||
constructor(private route: ActivatedRoute) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.data
|
||||
.subscribe((data: { list: Table[] }) => {
|
||||
this.list = data.list;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user