Skip to content
Agentmart
Submit a tool

ngx-core

SSR-safe window/document access and ngOnChanges helpers from @ibenvandeveire/ngx-core.

Skill by IbenTesara

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ibentesara-ngx-core

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

SSR-safe window/document access and ngOnChanges helpers from @ibenvandeveire/ngx-core. Use for NgxWindowService, scroll/width observables, runInBrowser, or simpleChangeHasChanged.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ngx-core

What's inside

Skill name
ngx-core
Description
SSR-safe window/document access and ngOnChanges helpers from @ibenvandeveire/ngx-core. Use for NgxWindowService, scroll/width observables, runInBrowser, or simpleChangeHasChanged.
License
MIT
Instructions
46 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# @ibenvandeveire/ngx-core

Base utilities for other `@ibenvandeveire` Angular packages. Install: `npm install @ibenvandeveire/ngx-core`. Major version tracks Angular.

## NgxWindowService

Inject `NgxWindowService` instead of using `window`/`document` directly (SSR-safe).

| API | Purpose |
| --- | ------- |
| `width$` | Window width; defaults to `1200` when no window |
| `scrollingUp$` | `true` when scrolling up |
| `currentScrollPosition` / `currentScrollPosition$` | Scroll position after scroll handling |
| `window` | `Window` reference |
| `scrollTo(offset?)` | Scroll; default offset `0` (top); no-op without window |
| `hasDocument()` | Whether `document` exists |
| `isBrowser()` | Uses `isPlatformBrowser` internally |
| `runInBrowser(({ browserWindow, browserDocument }) => …)` | Run callback only in browser |

**Document:** not exposed directly — use `runInBrowser` or `hasDocument`.

```typescript
private readonly windowService = inject(NgxWindowService);

this.windowService.runInBrowser(({ browserDocument }) => {
  browserDocument.querySelector('…');
});
```

## simpleChangeHasChanged

Utility for `ngOnChanges`: returns whether a `SimpleChange` actually changed (JSON compare of previous vs current).

```typescript
import { simpleChangeHasChanged } from '@ibenvandeveire/ngx-core';

ngOnChanges(changes: SimpleChanges): void {
  if (simpleChangeHasChanged(changes.layoutType)) {
    // react
  }
}
```

Also exported from `@ibenvandeveire/ngx-utils` — prefer one import per feature area.

From IbenTesara/opensource, MIT.

More from IbenTesara/opensource

Signals

Stars
2
Forks
1
Open issues
0
Last commit (this folder)
Jun 2, 2026 (4 months ago)
Last release
Aug 18, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from IbenTesara

Cite this page

ngx-core skill. Agent Mart. https://agentmart.dev/skills/ibentesara-ngx-core (last updated 2026-10-24)