Update to work with NgModelController

Hi mate, thanks for the directive. One of the developers at work was using your code and I ended up making some changes to it today to better work with our form validation (it now relies on ngModel). Thought i'd share the changes if you are interested.