title: Angular Delay custom directive's link function
body: <p>i have simple custom directive that checks and sets <code>href</code> on its element.
  But i need to check the href with data loaded from server (async) to make sure that user has access to that link(Kind of ACL).</p>
  
  <p>So how can i delay the link function of doing its job until this data has finished loading?</p>