title: AngularJS print part of page with and data binding
body: <p>I would like to print a part of my page. <br>
  Actually, i try, to call another page with my part only and print this.</p>
  
  <p>But the print result isn't the view result. My print result doesn't render angular binding.</p>
  
  <p>My MainView</p>
  
  <pre><code>&lt;div id="main-content" ng-controller="ConsulterSectionController"&gt;
      &lt;ng-include src="'app/plugins/pilotage/views/templates/_section.html'" ng-init="initParams()" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My call to print</p>
  
  <pre><code>printSection = (divName) =&gt; {
              var temp = new Array();
              temp[0] = this.$scope.model;
              temp[1]=this.$scope.elementsColonne1;
              temp[2]=this.$scope.elementsColonne2;
              temp[3] = this.$scope.estOuvert;
              var json = JSON.stringify(temp);
              sessionStorage.setItem("sectionPrint", json);
              var popupWin = this.$window.open('/Efficience/printEcran.html', 'Imprime Ecran', 'width=1000,height=1000');
              this.$timeout(function () { console.log('6');  popupWin.document.close();}, 2000, true);
  }
  </code></pre>
  
  <p>Here is my screen view 
  <a href="http://hpics.li/ac5744d" rel="nofollow noreferrer">http://hpics.li/ac5744d</a></p>
  
  <p>Here is my print view
  <a href="http://hpics.li/95436c8" rel="nofollow noreferrer">http://hpics.li/95436c8</a></p>
  
  <p>I try this : <a href="https://stackoverflow.com/questions/22189544/print-a-div-using-javascript-in-angularjs-single-page-aplication">Print a div using javascript in angularJS single page application</a>, but angular attributs aren't interpret.</p>
  
  <p>Do you have any idea to print my view binding?</p>
  
  <p>EDIT : 18/06</p>
  
  <p>If i replace </p>
  
  <pre><code>this.$timeout(function () { popupWin.document.close();}, 2000, true);
  }
  </code></pre>
  
  <p>by </p>
  
  <pre><code>setTimeout(function () { popupWin.document.close();}, 0);
  </code></pre>
  
  <p>it's work only for chrome but i need to work with ie11</p>