title: How to get/set/remove element attribute in Angular 2 using "the angular way"?
body: <p>I've been reading some articles about Angular 2 pitfalls and what to avoid, one of those things revolves around not accessing the DOM directly. </p>
  
  <p>I noticed that the <code>Renderer</code> is quite useful since it contains some methods that can help avoid the DOM pitfall. However, I noticed that it doesn't contain any <code>get</code> functions, only <code>set</code> functions such as <code>setElementAttribute</code>, <code>setElementClass</code> and so on. </p>
  
  <p>So my question is rather simple, how do you use the above functions but as the <code>get</code> and <code>remove</code> version? Do they live in another class or how do you work with retrieving attributes or classes for example?</p>