Category : typescript

I have a component inside another big component (parent). The big component has the tabs feature and to access those tabs inside the inner component im doing the following: document.querySelectorAll(‘.mat-tab-group’); That above code outputs me an array of length 2 because there is another tab. So to access the last one and set the default ..

Read more

Is there a vscode plugin or IDE that can display the dependency of typescript functions or call stack view? I want to display a view that can show the call stack view of typescript function? eg: function foo() { const something = a(); const anotherThing = b(); return c(something + anotherThing) } function a() { ..

Read more

I’m trying to see if I can get VS Code to assist me when typing an object with predefined types. A dish object can look like this: { "id": "dish01", "title": "SALMON CRUNCH", "price": 120, "ingredients": [ "MARINERAD LAX", "PICKLADE GRÖNSAKER", "KRISPIG VITLÖK", "JORDÄRTSKOCKSCHIPS", "CHILIMAJONNÄS" ], "options": [ { "option": "BAS", "choices": ["RIS", "GRÖNKÅL", "MIX"], ..

Read more