fix($compile): respect return value from controller constructor
The return value of the controller constructor is now respected in all cases. If controllerAs is used, the controller will be re-bound to scope. If bindToController is used, the previous binding $watches (if any) will be unwatched, and bindings re-installed on the new controller.
C
Caitlin Potter committed
62d514b06937cc7dd86e973ea11165c88343b42d
Parent: 35498d7