Index of every page on this site: llms.txt
All skills
abiramcodes avatar

/angular-developer

@5863679
by Abiramabiramcodes/ng-point9 stars
Run it yourself

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), queries and content projection, forms, dependency injection, routing, server and hybrid rendering (SSR, prerendering, hydration), accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, naming conventions, or CLI tooling.

  • 45 files
  • 180.7 KB
  • MIT
  • Updated 2 days ago
  • GitHub
Use this Skill: https://skilld.dev/gh/abiramcodes/ng-point/angular-developer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesinputs.md

≈626 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Inputs

Inputs allow data to flow from a parent component to a child component. Angular recommends using the signal-based input API for modern applications.

Signal-based Inputs

Declare inputs using the input() function. This returns an InputSignal.

import {Component, input, computed} from '@angular/core';

@Component({
  selector: 'app-user',
  template: `<p>{{ label() }} ({{ age() }})</p>`,
})
export class User {
  // Optional input with default value
  readonly name = input('Guest');

  // Required input
  readonly age = input.required<number>();

  // Inputs are reactive signals
  protected readonly label = computed(() => `Name: ${this.name()}`);
}

Usage in Template

<app-user [name]="userName" [age]="25" />

Configuration Options

The input function accepts a config object:

  • Alias: Change the property name used in templates.
  • Transform: Modify the value before it reaches the component.
import { input, booleanAttribute } from '@angular/core';

@Component({...})
export class CustomButton {
  // Alias example
  readonly label = input('', { alias: 'btnLabel' });

  // Transform example using built-in helper
  readonly disabled = input(false, { transform: booleanAttribute });
}

Model Inputs (Two-Way Binding)

Use model() to create an input that supports two-way data binding.

@Component({
  selector: 'custom-counter',
  template: `<button (click)="increment()">+</button>`,
})
export class CustomCounter {
  readonly value = model(0);

  increment() {
    this.value.update((v) => v + 1);
  }
}

Usage

<!-- Two-way binding with a signal -->
<custom-counter [(value)]="mySignal" />

<!-- Two-way binding with a plain property -->
<custom-counter [(value)]="myProperty" />

Decorator-based Inputs (@Input)

The legacy API remains supported but is not recommended for new code.

import { Component, Input } from '@angular/core';

@Component({...})
export class Legacy {
  @Input({ required: true }) value = 0;
  @Input({ transform: trimString }) label = '';
}

Best Practices

  • Prefer Signals: Use input() instead of @Input() for better reactivity and type safety.
  • Required Inputs: Use input.required() for mandatory data to get build-time errors.
  • Pure Transforms: Ensure input transform functions are pure and statically analyzable.
  • Avoid Collisions: Do not use input names that collide with standard DOM properties (e.g., id, title).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 5863679. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 10 hours ago.

Activeupdated 2 days ago
Other metadata
metadata
{
  "author": "Copyright 2026 Google LLC",
  "version": "1.0",
  "internal": true
}

README badge

README badge for abiramcodes/ng-point/angular-developer