Skip to content
Permalink
74000d70c2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (17 sloc) 512 Bytes
import { BehaviorSubject } from 'rxjs';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class EndItemService {
private selectedEndItem = new BehaviorSubject<string>(null);
endItem$ = this.selectedEndItem.asObservable();
private fullEndItem: any;
setEndItem(endItem: any) {
this.fullEndItem = endItem;
this.selectedEndItem.next(endItem.endItemAcronymCode);
}
getFullEndItem(): any {
return this.fullEndItem;
}
}