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

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 #32753
This commit is contained in:
Matias Niemelä
2019-09-18 11:18:37 -07:00
committed by Andrew Kushnir
parent f8f7c1540a
commit 32f4544f34
5 changed files with 160 additions and 23 deletions

View File

@ -498,7 +498,7 @@ function getContext(tNode: TNode, isClassBased: boolean): TStylingContext {
if (!isStylingContext(context)) {
context = allocTStylingContext(context as StylingMapArray | null);
if (ngDevMode) {
attachStylingDebugObject(context as TStylingContext);
attachStylingDebugObject(context as TStylingContext, isClassBased);
}
if (isClassBased) {
tNode.classes = context;