title: How to get correct attributes of a directive that is used multiple times on the same page?
body: <p><em>Angular 1.4.8</em></p>
  
  <p><a href="https://jsfiddle.net/sergibondarenko/y61rca5e/2/" rel="nofollow noreferrer">Here is JSFiddle</a>.</p>
  
  <p>I have a directive used twice on one page. I only change some attributes of the directive. It appears, that I get only the last defined attributes inside <code>searchRelations</code> function. </p>
  
  <p>Is it possible to get relations A attributes when I search in the first text input and get relations B attributes when I search in the second one?</p>