I suggest not using the name 'autosize' for the directive. Since AngularJS checks a variety of attributes (`autosize`, `x-autosize`, `data-autosize` etc. -  see http://jsfiddle.net/api/post/library/pure/), it might be possible that someone uses `data-autosize` (to be fully HTML5 compliant). If they do (like I did!), they will run into a [collision with the same data attribute that jQuery-autosize uses](https://github.com/jackmoore/autosize/blob/master/jquery.autosize.js#L72). This makes jQuery-autosize ignore the `<textarea>`. It took a while to debug...

Please get back to me if you would like me to create jsFiddle for this testcase.

Anyway, thanks for this piece of code! I just used it for a project of mine and it works great after the change mentioned above.