Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable, OnInit } from '@angular/core';
- export interface SharedModel {
- factorFlag:boolean
- }
- @Injectable({
- providedIn: 'root'
- })
- export class FacilityDefinitionService {
- SharedComponent: SharedModel = {
- factorFlag:false
- }
- }
- export class WorkOrderLimitComponent implements OnInit {
- shareData;
- constructor( private _woFaclityService: FacilityDefinitionService){
- this.shareData = _woFaclityService.SharedComponent;
- }
- ngOnInit(){
- addSubscribers() {
- //code
- if(!this.shareData.factorFlag == true){
- //code
- });
- //code
- }
- }
- export class FactorFormComponent implements OnInit {
- ngOnInit() {
- this.shareData.factorFlag = true;
- }
- }
Add Comment
Please, Sign In to add comment