title: debugInfoEnabled for Angular 1.2
body: <p>Angular 1.3 introduced a new <a href="https://docs.angularjs.org/api/ng/provider/$compileProvider#debugInfoEnabled"><code>debugInfoEnabled()</code></a> method that can provide a boost in performance if called with <code>false</code> in the <a href="https://docs.angularjs.org/guide/production#disabling-debug-data">application config function</a>:</p>
  
  <pre><code>myApp.config(['$compileProvider', function ($compileProvider) {
      $compileProvider.debugInfoEnabled(false);
  }]);
  </code></pre>
  
  <p>Also, Angular 1.3 dropped IE8 support. And this is a problem for me, my application have to run on IE8. Hence, I cannot upgrade to angular 1.3 and have to live with 1.2.</p>
  
  <p>Is there a way to achieve the same functionality with angular 1.2?</p>
  
  <p>In particular, at least a part of what <code>debugInfoEnabled()</code> does:</p>
  
  <ul>
  <li>prevent creation of <code>ng-scope</code>/<code>ng-isolated-scope</code> CSS classes while creating new scopes</li>
  <li>do not attach binding data and ng-class CSS class to elements with ngBind, ngBindHtml or {{...}} interpolations</li>
  </ul>
  
  <p><sup>As one possible option, I can fork the angularjs repository and backport the feature back to 1.2. Then, use the fork maintaining updates from the upstream.</sup></p>
  
  <p>Would appreciate any pointers.</p>