title: TypeError: self.parent.parent.context.parseInt is not a function
body: <p>I'm trying to assign height to a img using ngStyle and for that I'm calculating height with some Math operation as follows:</p>
  
  <pre><code>&lt;div [ngSwitch]="tbNm?tbNm:'itm0'"&gt;
      &lt;ion-list *ngFor="let vl of scrnshot;let ind=index"&gt;
        &lt;img *ngSwitchCase="'itm'+ind" alt="Akhilesh" [ngStyle]="{'height':(parseInt(vl.names[0].hitWid.bdHt+(websitTyp(vl._id.origin)?100:0)))+'px','width':(vl.names[0].hitWid.bdWd+'px')}" [src]="vl.names[0].base64"&gt;
      &lt;/ion-list&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>But when I do run it it gives following error:</p>
  
  <pre><code>error_handler.js:51 TypeError: self.parent.parent.context.parseInt is not a function
      at DebugAppView._View_HomePage9.detectChangesInternal (HomePage.ngfactory.js:1444)
      at DebugAppView.AppView.detectChanges (view.js:272)
      at DebugAppView.detectChanges (view.js:377)
      at DebugAppView.AppView.detectContentChildrenChanges (view.js:290)
      at DebugAppView._View_HomePage8.detectChangesInternal (HomePage.ngfactory.js:1407)
      at DebugAppView.AppView.detectChanges (view.js:272)
      at DebugAppView.detectChanges (view.js:377)
      at DebugAppView.AppView.detectContentChildrenChanges (view.js:290)
      at DebugAppView._View_HomePage0.detectChangesInternal (HomePage.ngfactory.js:270)
      at DebugAppView.AppView.detectChanges (view.js:272)
  </code></pre>