How to log Enable/Disable in AngularJS