jhipster/generator-jhipster — pull request #216 by NicolasRitouet (2014-03-30 17:52:15+00:00)
Title: Fix error when password was put in an object

If the ng-model of the password was in an object (ng-model="user.password"), the scope[attr.password] didn't work.
And since $watch return the value of the watched object, it's much cleaner to use it.