N
N
Nick Nesterov2015-12-13 19:22:18
JavaScript
Nick Nesterov, 2015-12-13 19:22:18

How to not display errors in the browser console in Angular?

Is there a special function or something else that will block the display in the console?
Let's say locally I will see errors and other logs, but they should not be in production.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-12-13
@njnesterov

use the $log service to output messages to the console, its output can be disabled in $logProvider. There is also a $exceptionHandler that can be decorated so that it displays errors in the log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question