Instead of using the normal console.log("foo", bar, ...) method, you should use the Angular provider equivalent like so: $log.debug("foo", bar, ...).
console.log("foo", bar, ...)
$log.debug("foo", bar, ...)
Note: make sure you add the $log provider as a dependency of your service/directive/controller.
$log
This way, these logs will be disabled when moving to production without you having to do anything about it.
production
For more info: https://docs.angularjs.org/api/ng/service/$log
There was an error while loading. Please reload this page.