title: Modal is opening but the value from Inputs is undefined. It happens just with the first opening of modal
body: <p>Hello I have a kind of confirmation modal with Inputs :</p>
  
  <pre><code> @Input('input1') input1: string;
   @Input('input2') input2: boolean;
  
   constructor(private changeDetectorRef: ChangeDetectorRef) {
   }
  
   ngOnInit() {
   }
  
   public openModal(): void {
       console.log(this.input2)
       console.log(this.input1)
       this.confirmationModal.nativeElement.classList.add('open-modal');
   }
  </code></pre>
  
  <p>The parent Component when I'm opening this modal inside a subscribe method. In this method I'm assigning the values like this: </p>
  
  <pre><code>@ViewChild('confirmationModal') confirmationModal;
  input1: string;
  input2: boolean;
  ngOnInit(): void {    
  }
  
  ngOnDestroy(): void {
  }
  
  close(project: any) {  
   this.service.close(project).subscribe((success: ModelDto) =&gt; {
              this.confirmationModal.openModal();
              this.input2 = success.input2;
              console.log(this.input2)
              this.input1 = 'Some text';
          });
      }
  </code></pre>
  
  <p>In html I have :</p>
  
  <pre><code>&lt;app-confirmation-modal #confirmationModal
                          [input1]="input1"
                          (sendConfirm)="toggleSettled($event)"
                          (generateReport)="generateReport()"
                          [input2]="input2"&gt;
  &lt;/app-confirmation-modal&gt;
  </code></pre>
  
  <p>Here is a method openModal from my confirmationModal: </p>
  
  <p>The two presented <code>console.logs</code> give undefined only on first opening of the modal.
  So when I first try to open the modal I got an empty modal and input1 and input2 are undefined. But From this point every time I open a modal I got values that should be there both in modal and in <code>console.logs</code>. So the problem is only with the first opening and I have no clue what can cause it.</p>
  
  <p>Edit:
  I've tested it for more time and it appears that it's like 1 click delayed. I mean the values presented in Modal are from a cycle before than values that should be in actual click</p>