productdetails.service.ts 333 Bytes
Newer Older
Ooh-Ao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class ProductdetailsService {

  constructor() {}
  private productId = new Subject<any>();
  dynamicProductId = this.productId.asObservable();
  emitProductId(value: any){
    this.productId.next(value);
  }
}