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:

committed by
Andrew Kushnir

parent
f8f7c1540a
commit
32f4544f34
@ -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;
|
||||
|
Reference in New Issue
Block a user