title: Failed to execute 'setAttribute' on 'Element': Angular 11
body: <p>I'm getting following error in my new Angular 11 app. Could not found any syntax errors.</p>
  <pre><code>core.js:6156 ERROR DOMException: Failed to execute 'setAttribute' on 'Element': 'ng-reflect-Dev Portal' is not a valid attribute name.
      at EmulatedEncapsulationDomRenderer2.setAttribute (http://localhost:8080/admin/vendor.js:62217:16)
      at setNgReflectProperty (http://localhost:8080/admin/vendor.js:38053:26)
      at setNgReflectProperties (http://localhost:8080/admin/vendor.js:38078:13)
      at elementPropertyInternal (http://localhost:8080/admin/vendor.js:38001:13)
      at Module.ɵɵproperty (http://localhost:8080/admin/vendor.js:42749:9)
      at DevMainHeaderComponent_Template (http://localhost:8080/admin/app-layout-layout-module.js:394:65)
      at executeTemplate (http://localhost:8080/admin/vendor.js:37594:9)
      at refreshView (http://localhost:8080/admin/vendor.js:37463:13)
  </code></pre>
  <p>My html template as follows,</p>
  <pre><code>&lt;div class=&quot;row main-header-container&quot;&gt;
    &lt;div class=&quot;col-xs-12 col-sm-12 col-md-12 col-lg-8 col-xl-8 offset-lg-2 offset-xl-2&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
        &lt;div class=&quot;col-xs-6 col-sm-6 col-md-6 col-lg-2 col-xl-2&quot; [ngClass]=&quot;(isLoggedInUser === true)?'offset-lg-3 offset-xl-3':'offset-lg-9 offset-xl-9'&quot;&gt;
          &lt;select class=&quot;form-control&quot;&gt;
            &lt;option&gt;English&lt;/option&gt;
            &lt;option&gt;Finish&lt;/option&gt;
          &lt;/select&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>TS File as follows,</p>
  <pre><code>export class DevMainHeaderComponent implements OnInit {
  
    public isLoggedInUser = true;
  }
  </code></pre>
  <p>If I removed ngClass directive it works, but I cant find any issue with ngClass syntax here, even I tried  hardcoded like this <code>[ngClass]=&quot;['first']&quot;</code>, still getting same error.</p>
  <p>This console error is not throwing with ng serve and working fine, only in prod it happens.</p>