From 248211f1fa24bc4ba3bb6e100e6a72f42b66b1e3 Mon Sep 17 00:00:00 2001 From: Oscar Busk Date: Wed, 23 Aug 2017 15:02:06 +0200 Subject: [PATCH 1/2] docs($compileProvider): improve information about debugInfoEnabled Add more information about what `debugInfoEnabled` affects. --- src/ng/compile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ng/compile.js b/src/ng/compile.js index 615e42516fc1..89429f6f8dd7 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1387,7 +1387,12 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { * binding information and a reference to the current scope on to DOM elements. * If enabled, the compiler will add the following to DOM elements that have been bound to the scope * * `ng-binding` CSS class + * * `ng-scope` and `ng-isolated-scope` CSS classes * * `$binding` data property containing an array of the binding expressions + * * `$scope`, `$isolateScope` or `$isolateScopeNoTemplate` data properties which are accessable via the + * {@link angular.element#methods `scope()` or `isolateScope()` methods}. + * * Placeholder comments will contain information about what directive and binding caused the placeholder. + * E.g. `` * * You may want to disable this in production for a significant performance boost. See * {@link guide/production#disabling-debug-data Disabling Debug Data} for more. From e66b2915ddb024e8a19943271d7e0b44b41b18d2 Mon Sep 17 00:00:00 2001 From: oscar_busk Date: Wed, 23 Aug 2017 20:25:46 +0200 Subject: [PATCH 2/2] docs($compileProvider): improve wording Use wording with less implementation details, based on review feedback. --- src/ng/compile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 89429f6f8dd7..14ad94e02d4d 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1389,8 +1389,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { * * `ng-binding` CSS class * * `ng-scope` and `ng-isolated-scope` CSS classes * * `$binding` data property containing an array of the binding expressions - * * `$scope`, `$isolateScope` or `$isolateScopeNoTemplate` data properties which are accessable via the - * {@link angular.element#methods `scope()` or `isolateScope()` methods}. + * * Data properties used by the {@link angular.element#methods `scope()`/`isolateScope()` methods} to return + * the element's scope. * * Placeholder comments will contain information about what directive and binding caused the placeholder. * E.g. `` *