feat(ivy): improve debugging experience for styles/classes (#33179)

This patch introduces the `printTable()` and `printSources()`
methods to `DebugStylingContext` which can be used via the
`window.ng.getDebugNode` helpers when debugging an application.

PR Close #33179
This commit is contained in:
Matias Niemelä
2019-09-18 11:18:37 -07:00
parent e9ee6859e3
commit 724707c6e4
5 changed files with 157 additions and 20 deletions

View File

@ -533,7 +533,7 @@ function getContext(tNode: TNode, isClassBased: boolean): TStylingContext {
const hasDirectives = isDirectiveHost(tNode);
context = allocTStylingContext(context as StylingMapArray | null, hasDirectives);
if (ngDevMode) {
attachStylingDebugObject(context as TStylingContext);
attachStylingDebugObject(context as TStylingContext, isClassBased);
}
if (isClassBased) {