Feature: Added the customer module to list / edit customers. This is needed to add the customer discount functionality

This commit is contained in:
2021-04-02 06:34:31 +05:30
parent 214c40fbde
commit 0da16e9548
24 changed files with 560 additions and 7 deletions

View File

@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { Customer } from '../core/customer';
import { CustomerService } from './customer.service';
@Injectable({
providedIn: 'root',
})
export class CustomerListResolver implements Resolve<Customer[]> {
constructor(private ser: CustomerService) {}
resolve(): Observable<Customer[]> {
return this.ser.list();
}
}