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.

referencesdefine-routes.md

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

Define Routes

Routes are objects that define which component should render for a specific URL path.

Basic Configuration

Define routes in a Routes array and provide them using provideRouter in your appConfig.

// app.routes.ts
export const routes: Routes = [
  {path: '', component: HomePage},
  {path: 'admin', component: AdminPage},
];

// app.config.ts
export const appConfig: ApplicationConfig = {
  providers: [provideRouter(routes)],
};

URL Paths

  • Static: Matches an exact string (e.g., 'admin').
  • Route Parameters: Dynamic segments prefixed with a colon (e.g., 'user/:id').
  • Wildcard: Matches any URL using **. Useful for "Not Found" pages. Always place at the end of the array.

Matching Strategy

Angular uses a first-match wins strategy. Specific routes must come before less specific ones.

Redirects

Use redirectTo to point one path to another.

{ path: 'articles', redirectTo: '/blog' },
{ path: 'blog', component: Blog },

Conditional Redirects

Pass a function to redirectTo to apply logic when redirecting.

{
  path: 'restaurant/:location/menu',
  redirectTo: ({ params }) => {
    const base = `/restaurant/${params['location']}/menu`;
    const hour = new Date().getHours();

    if (hour < 11) return `${base}/breakfast`;
    if (hour < 17) return `${base}/lunch`;
    return `${base}/dinner`;
  },
},

Page Titles

Associate titles with routes for accessibility. Titles can be static or dynamic (via ResolveFn or a custom TitleStrategy).

{ path: 'home', component: Home, title: 'Home Page' }

Route Data and Providers

  • Static Data: Attach metadata using the data property.
  • Route Providers: Scope dependencies to a specific route and its children using the providers array.

Nested (Child) Routes

Define sub-views using the children property. Parent components must include a <router-outlet />.

{
  path: 'product/:id',
  component: Product,
  children: [
    { path: 'info', component: ProductInfo },
    { path: 'reviews', component: ProductReviews },
  ],
}

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