title: Angularjs attribute in directive is undefined
body: <p>I have the following code and I want to get the value of myevent attribute,
  I try to get it by :attr.myevent but it returns 'undefined'</p>
  
  <pre><code>myApp.directive('eventCustom' , function(){
      return{
          restrict: 'AEC',
          template: '&lt;button myevent="click"&gt;clickme&lt;/button&gt;',
          link: function(scope, elem , attr){
              elem.bind('click' , function(){
                  alert(attr.myevent);
              });
          }
      }
  })
  </code></pre>
  
  <p><a href="http://jsfiddle.net/HB7LU/19711/" rel="nofollow">http://jsfiddle.net/HB7LU/19711/</a></p>