title: View is not working until do a click anywhere on the page when updating checkbox angular 2+
body: <p>Am using Angular 7 in my application. I have functionality to display content based on the selected checkbox. Everything works fine, but after checkbox checked or unchecked content seems updated but the click is not working until click is register anywhere on the page. </p>
  
  <p>Please check the below code.</p>
  
  <pre><code>&lt;div class="col filter_container mb-3 d-table py-2 py-md-0"&gt;
            &lt;span class="font-arial-13 font-weight-bold d-table-cell d-lg-inline-block filterKey"&gt;Filters:&lt;/span&gt;
            &lt;span class="d-table-cell d-lg-inline-block pl-3 filterContent"&gt;
              &lt;span class="filterItem"&gt;
                &lt;label class="container_check font-arial-13 mr-4"&gt;{{filterArray[filterItem][0].value}}
                  &lt;input type="checkbox" [(ngModel)]="filterArray[filterItem][0].selected" (ngModelChange)="getCheckedItem(filterArray[filterItem][0].name, filterArray[filterItem][0].selected, filterItem);"&gt;
                  &lt;span class="checkmark"&gt;&lt;/span&gt;
                &lt;/label&gt;
              &lt;/span&gt;
              &lt;span class="filterItem"&gt;
                &lt;label class="container_check font-arial-13 mr-4"&gt;{{filterArray[filterItem][1].value}}
                  &lt;input type="checkbox" [(ngModel)]="filterArray[filterItem][1].selected" (ngModelChange)="getCheckedItem(filterArray[filterItem][1].name, filterArray[filterItem][1].selected, filterItem);"&gt;
                  &lt;span class="checkmark"&gt;&lt;/span&gt;
                &lt;/label&gt;
              &lt;/span&gt;
              &lt;span class="filterItem"&gt;
                &lt;label class="container_check font-arial-13 mr-4"&gt;{{filterArray[filterItem][2].value}}
                  &lt;input type="checkbox" [(ngModel)]="filterArray[filterItem][2].selected" (ngModelChange)="getCheckedItem(filterArray[filterItem][2].name, filterArray[filterItem][2].selected, filterItem);"&gt;
                  &lt;span class="checkmark"&gt;&lt;/span&gt;
                &lt;/label&gt;
              &lt;/span&gt;
              &lt;div class="d-inline-block filterBg"&gt;
                &lt;span class="d-inline-block"&gt;
                  &lt;span class="font-arial-13 d-inline-block mr-3 mr-md-0"&gt;&lt;span class="fas fa-circle blueDot"&gt;&lt;/span&gt;{{filterArray[filterItem][5].value}}&lt;/span&gt;
                &lt;/span&gt;
                &lt;span class="d-inline-block"&gt;
                  &lt;label class="container_check font-arial-13 mr-3"&gt;&lt;span class="fas fa-circle greenDot"&gt;&lt;/span&gt;{{filterArray[filterItem][3].value}}
                    &lt;input type="checkbox" [(ngModel)]="filterArray[filterItem][3].selected" (ngModelChange)="getCheckedItem(filterArray[filterItem][3].name, filterArray[filterItem][3].selected, filterItem);"&gt;
                    &lt;span class="checkmark"&gt;&lt;/span&gt;
                  &lt;/label&gt;
                &lt;/span&gt;
                &lt;span class="d-inline-block"&gt;
                  &lt;label class="container_check font-arial-13 mr-3"&gt;&lt;span class="fas fa-circle orangeDot"&gt;&lt;/span&gt;{{filterArray[filterItem][4].value}}
                    &lt;input type="checkbox" [(ngModel)]="filterArray[filterItem][4].selected" (ngModelChange)="getCheckedItem(filterArray[filterItem][4].name, filterArray[filterItem][4].selected, filterItem);"&gt;
                    &lt;span class="checkmark"&gt;&lt;/span&gt;
                  &lt;/label&gt;
                &lt;/span&gt;
              &lt;/div&gt;
            &lt;/span&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>The above is the filter options please check below for the content which will display based on the filter</p>
  
  <pre><code>&lt;td *ngFor="let saColumn of smartColumnName"&gt;
                    &lt;div *ngIf="main[saColumn.columnName]"&gt;
                      &lt;div *ngFor="let item of parseData(main[saColumn.columnName])"&gt;
                        &lt;div *ngIf="item.normal"&gt;
                          &lt;ul class="normal pl-0"&gt;
                            &lt;li *ngFor="let list of item.normal" class="dotsBlue_smart_intel position-relative"&gt;
                              &lt;a [routerLink]="list.link"&gt;{{list.text}}&lt;/a&gt;
                            &lt;/li&gt;
                          &lt;/ul&gt;
                        &lt;/div&gt;
                        &lt;div *ngIf="item.client &amp;&amp; (filterArray[filterItem][3].selected || filterArray[filterItem][0].selected )"&gt;
                          &lt;ul class="client pl-0"&gt;
                            &lt;li *ngFor="let list of item.client" class="dotsGreen_smart_intel position-relative"&gt;
                              &lt;a [routerLink]="list.link"&gt;{{list.text}}&lt;/a&gt;
                            &lt;/li&gt;
                          &lt;/ul&gt;
                        &lt;/div&gt;
                        &lt;div *ngIf="item.thirdP &amp;&amp; (filterArray[filterItem][4].selected || filterArray[filterItem][0].selected )"&gt;
                          &lt;ul class="thirdP pl-0"&gt;
                            &lt;li *ngFor="let list of item.thirdP" class="dotsOrange_smart_intel position-relative"&gt;
                              &lt;a [routerLink]="list.link"&gt;{{list.text}}&lt;/a&gt;
                            &lt;/li&gt;
                          &lt;/ul&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/td&gt;
  </code></pre>
  
  <p>When I update checkbox seems view is updated. But the page is not routing on the first click. It works for second click.</p>
  
  <p>Please help me to solve the issue. </p>