title: Get element by class name and attribute value and set CSS in AngularJS
body: <p>I have a directive:</p>
  
  <pre><code>class LkfsSliderDirective {
  
  constructor() {
      this.restrict = "E";
      this.templateUrl = "./controls/lkfsSlider/lkfsSliderTemplate.html";
      this.controller = 'LkfsSliderController';
      this.controllerAs = 'slider';
      this.replace = true;
      }
  
      link(scope, element, attrs) {
  
      }
  }
  
  export default LkfsSliderDirective;
  </code></pre>
  
  <p>In HTML:</p>
  
  <pre><code>&lt;img ng-src="{{slide.image}}" class="lkfs-slider-slide" alt="" id="{{slide.id}}" ng-repeat="slide in slider.slides"/&gt;
  </code></pre>
  
  <p>I would like get <code>img</code> tag by class name with specific id (for example = 0) and set CSS (<code>display: block</code>).</p>
  
  <p>I tried in many ways but nothing works, for example:</p>
  
  <pre><code>var elem = document.getElementsByTagName("img")[0];
  angular.element(elem).css('display', 'block');
  </code></pre>
  
  <p>Also in link.</p>
  
  <p>Any ideas?</p>