Run ng serve (or
npx nx serve for Nx monorepos)
and navigate to the route containing the component you want to export. No staging environment or live URL needed.
If the component depends on NgRx store state, Angular Signals, or HTTP data, ensure the app is in the correct state before capturing. Use Angular DevTools to inspect and modify component inputs or service values if needed.