> Canonical URL: https://codingcat.dev/post/debug-angular-9-in-chrome-console

# Debug Angular 9 in Chrome Console

✏️ Blog PostApril 20, 2020[![](/logos/tags/angular-symbol-light.svg)![](/logos/tags/angular-symbol-dark.svg)Angular](/topic/angular)[![](/logos/firebase/firebase-symbol.png)![](/logos/firebase/firebase-symbol.png)Firebase](/topic/firebase)[![](/logos/tags/google-cloud-symbol-light.svg)![](/logos/tags/google-cloud-symbol-dark.svg)Google Cloud](/topic/google-cloud)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)[![](/logos/tags/nextjs-symbol-light.svg)![](/logos/tags/nextjs-symbol-dark.svg)Next.js](/topic/nextjs)

# Debug Angular 9 in Chrome Console

![CodingCat.dev tutorial cover image](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a9715bc8ef51cab8ed422e81c810d42b1fe086ef-1920x1080.png?w=1920&q=82&fit=max&auto=format)[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)

> These functions are exposed via the global `ng` "namespace" variable automatically when you import from `@angular/core` and run your application in development mode. These functions are not exposed when the application runs in a production mode.

## Chrome Console Utilities

The great part about using the Chrome console is that it gives you access any DOM element that you have selected. For the last item you can get the reference by typing `$0` in the console. Below you will see that you can use the selection tool to easily find the element. Once this is selected you can then use `$0` as it will be the latest in your selection history. You can read further about this in [Console Utilities API Reference](https://developers.google.com/web/tools/chrome-devtools/console/utilities).

![](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/328f81e199321a33a1a88024699424ce29c9a1e8-926x725.png?w=926&q=82&fit=max&auto=format)

## Getting the Angular Component reference

Now that we know how to get a DOM reference we can use the Angular [@angular/core/global](mailto:code%3E@angular/core/global%3C/code) utilities, you can find more details here: [https://angular.io/api/core/global#entry-point-exports](https://angular.io/api/core/global#entry-point-exports).Using `ng.getContext($0)` we can access the angular component instance.

Copied! 🐾

```
// Get this component
let dialogComponent = ng.getContext($0);

// Get parent component
let dialogParentComponent = ng.getOwningComponent($0);
```

## Changing values in the Component

Now that you have a reference to the component using `let dialogComponent = ng.getContext($0)` we can now update the properties within the component. For this example we will change the qty in our recipeIngredient object.

Copied! 🐾

```
dialogComponent.data.recipeIngredient.qty = 5;
```

You should also note that you can display the entire component as well incase you are unaware of the structure.

![](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/d3a5b9f1bfec8396b8b33ccba30e7cb7185305ee-2386x808.png?w=1600&q=82&fit=max&auto=format)

## Making Component Update

In order to get the value change to show within the component you must trigger change detection.

Copied! 🐾

```
// Apply change detection
ng.applyChanges(dialogComponent);
```

## Resources, Links & Official Documentation

- [**Angular Developer Guide:**](https://angular.dev/overview) Signals, standalone components, and enterprise Angular workflows

## Related CodingCat.dev Tutorials & Podcast Episodes

- [**Adding Angular Components to your static site**](/post/adding-angular-components-to-your-static-site): Utilizing Web Components within Hugo Static Site Generator (or any static site), to take Stripe/PayPal payments and more!
- [**Angular and React Bindings for Data Connect in Firebase: Web Architecture & Implementation Guide**](/post/firebase-2025-04-dataconnect-web-bindings): Hands-on web engineering breakdown of "Angular and React Bindings for Data Connect" (2025-04-29). Learn how to integrate Firebase, Google Cloud, Web Dev, SQL in...
- [**Deploy Angular & Next.js apps with App Hosting, now GA! in Firebase: Web Architecture & Implementation Guide**](/post/firebase-2025-04-apphosting-general-availability): Hands-on web engineering breakdown of "Deploy Angular & Next.js apps with App Hosting, now GA!" (2025-04-09). Learn how to integrate Firebase, Google Cloud, Web...

## Frequently Asked Questions (FAQ)

### What are the main takeaways from Debug Angular 9 in Chrome Console?

Learn how to inspect and debug Angular 9 components directly inside the Chrome DevTools console using the new ng global object. Debug Angular 9 in Chrome Console explores practical patterns for Angular in modern software engineering. Throughout this post, Alex Patterson breaks down real-world implementation details for Angular so developers can apply these patterns directly in production.

### How do you implement Angular best practices in production?

When adopting Angular in a production stack, start by validating your configuration against the [**Angular Developer Guide**](https://angular.dev/overview) (Signals, standalone components, and enterprise Angular workflows). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.

### Where can I watch the full Debug Angular 9 in Chrome Console walkthrough and find related code resources?

You can explore the complete write-up and code examples right here on CodingCat.dev, and subscribe to the [**CodingCat.dev YouTube channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1) for weekly video tutorials. For a deeper dive into Angular, check out our related guide: [**Adding Angular Components to your static site**](/post/adding-angular-components-to-your-static-site).

✏️ Visual Architecture Diagram

## how this post connects together.

Follow AJ from first principles to production-ready architecture.

Let’s build it!✏️ Visual Diagram: Debug Angular 9 in Chrome Console✓ Good PatternVISUAL DIAGRAM[Diagram Walkthrough]Step-by-step diagram breakdown for Debug Angular 9 in Chrome Console: start with Debug Angular 9 in Chr, implement Hands-On Implementation, and ship to production.AAA Contrast Verified▶ Watch on @CodingCatDev YouTubeRelated Course & Video

## Watch the Related Video Deep Dive: TanStack Start, Router & Drizzle: End-to-End Type-Safe Full-Stack React

Build 100% type-safe full-stack React applications with TanStack Start, URL search-param schemas, createServerFn RPCs, Drizzle ORM, and Cloudflare Workers.

[View Full Page →](/course/tanstack-start-type-safe-full-stack-react)![](https://cdn.sanity.io/images/hfh83o0w/production/449b767c02cd905aeae6090afd37e8ebba990b7c-1376x768.png?rect=6,0,1365,768&w=1920&h=1080&q=82&fit=max&auto=format)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=NVcQZaEHwdE&list=UUnKZ8gEb78zXKMi1ns-IQ2g)

## related deep dives.

[All Blog Posts&rarr;](/blog)[![Chrome DevTools MCP: Self-Healing Agent Visual & Video Inspection](https://cdn.sanity.io/images/hfh83o0w/production/a8275a17a27ec4774212b57a9655a174df309bb6-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/chrome-devtools-mcp-visual-agent-loops)November 4, 2026[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[#AI & Agents](/topic/ai)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)

### [Chrome DevTools MCP: Self-Healing Agent Visual & Video Inspection](/course/chrome-devtools-mcp-visual-agent-loops)

Give your AI agent eyes inside the browser. Use Chrome DevTools MCP so your agent inspects its own rendered video frames, WebGL canvases, and DOM layouts before exporting.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Flagship 3: Deterministic HTML Motion & Critique with HyperFrames, GSAP, Impeccable & Chrome DevTools MCP](https://cdn.sanity.io/images/hfh83o0w/production/c941b8e8d25ad82addca07eecabe02ac4c39866f-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/deterministic-html-motion-hyperframes-gsap-devtools-mcp)November 4, 2026[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[#AI & Agents](/topic/ai)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)

### [Flagship 3: Deterministic HTML Motion & Critique with HyperFrames, GSAP, Impeccable & Chrome DevTools MCP](/course/deterministic-html-motion-hyperframes-gsap-devtools-mcp)

Build framework-agnostic HTML-to-video pipelines for AI agents. Combine HyperFrames, paused GSAP timelines, Impeccable design linting, and Chrome DevTools MCP self-healing visual inspection.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)