I have Angular components and first component uses the second one as a directive. They should share the same model object, which is initia
you could also store your data in an service with an setter and get it over a getter
import { Injectable } from '@angular/core';
@Injectable()
export class StorageService {
public scope: Array | boolean = false;
constructor() {
}
public getScope(): Array | boolean {
return this.scope;
}
public setScope(scope: any): void {
this.scope = scope;
}
}