From 38e408fe79a70d1c6891b3596959cfb5701e87bb Mon Sep 17 00:00:00 2001 From: David Kingdon Date: Fri, 30 Jun 2017 09:53:00 +0200 Subject: [PATCH 1/2] docs($log): Add blackboxing hint Add browser-agnostic hint about blackboxing and the benefits it brings developers when using $log. --- src/ng/log.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ng/log.js b/src/ng/log.js index c9a58618751b..fa2be55aa09d 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -11,6 +11,14 @@ * * The main purpose of this service is to simplify debugging and troubleshooting. * + * To reveal the location of the calls to `$log` in the JavaScript console, + * "blackbox" the Angular source in your browser. + * + * [Mozilla description of blackboxing](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source). + * [Chrome description of blackboxing](https://developer.chrome.com/devtools/docs/blackboxing). + * + * Note: not all browsers support blackboxing. + * * The default is to log `debug` messages. You can use * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. * From 6e7cf246bf91d6eb8014fe7f3efb1cacfeac0b58 Mon Sep 17 00:00:00 2001 From: Martin Staffa Date: Fri, 30 Jun 2017 11:56:40 +0200 Subject: [PATCH 2/2] typos + style --- src/ng/log.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/log.js b/src/ng/log.js index fa2be55aa09d..8ce5411080c9 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -12,12 +12,12 @@ * The main purpose of this service is to simplify debugging and troubleshooting. * * To reveal the location of the calls to `$log` in the JavaScript console, - * "blackbox" the Angular source in your browser. + * you can "blackbox" the AngularJS source in your browser: * * [Mozilla description of blackboxing](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source). * [Chrome description of blackboxing](https://developer.chrome.com/devtools/docs/blackboxing). * - * Note: not all browsers support blackboxing. + * Note: Not all browsers support blackboxing. * * The default is to log `debug` messages. You can use * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.