title: How to hide Print button in the print out using @media?
body: <p>I have a bootstrap column with a button for print which uses media attribute.</p>
  
  <pre><code>&lt;div class="panel-footer"&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-md-offset-5 col-md-2"&gt;
                              &lt;button class="btn btn-primary btn-wordwrap" ng-click="$print()" media="print"&gt;&lt;span class="glyphicon glyphicon-print"&gt;&lt;/span&gt; Print&lt;/button&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>The @media is defined in css as below.</p>
  
  <pre><code>@media print {
      button {
          display: none !important;
      }
  }
  </code></pre>
  
  <p>The $Print() is defined as below in angular controller.</p>
  
  <pre><code> $scope.$print = function () {
              window.print();
          };
  </code></pre>
  
  <p>It still prints the Print button in the print out. Any ideas what I am missing here? Thank you!</p>