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.

referencesenvironment-configuration.md

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

Environment configuration

Configuration strategies

Angular supports two main configuration strategies:

  • Build-time configuration using environment files
  • Runtime configuration by loading values at application startup

Choose the approach based on your deployment requirements.


Build-time configuration

Environment files define configuration values that are replaced at build time.

Security note: Environment files are bundled into the client-side application. They are visible to anyone who can load the page. Never store sensitive information like API keys, secrets, or credentials in environment files. These values can be easily accessed by users.

Generate environment files using the CLI:

ng generate environments

This creates environment-specific files such as:

// environment.ts
export const environment = {
  apiUrl: 'https://api.example.com',
};
// environment.development.ts
export const environment = {
  apiUrl: 'http://localhost:3000',
};

Import the environment where needed:

import {environment} from '../environments/environment';

const apiUrl = environment.apiUrl;

The Angular CLI replaces the appropriate file based on the build configuration.

If you need a development-mode check, use isDevMode() from @angular/core instead of relying on a manually maintained production flag.

Changes to environment files require rebuilding the application.


Runtime configuration (advanced)

In some scenarios, applications need to load configuration at runtime instead of build time.

This allows the same build artifact to be deployed across multiple environments without rebuilding.

A common approach is to load a JSON configuration file from the assets folder during application initialization.

Example

// src/assets/config.json
{
  "apiUrl": "https://api.example.com"
}

Load the configuration before the application starts:

import {Service, inject} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {tap} from 'rxjs';

interface AppConfig {
  apiUrl: string;
}

@Service()
export class AppConfigService {
  private config!: AppConfig;

  private readonly http = inject(HttpClient);

  loadConfig() {
    return this.http.get<AppConfig>('/assets/config.json').pipe(
      tap((data) => {
        this.config = data;
      }),
    );
  }

  get apiUrl(): string {
    return this.config.apiUrl;
  }
}

Register the loader during application bootstrap:

import {provideAppInitializer, inject} from '@angular/core';

provideAppInitializer(() => {
  const config = inject(AppConfigService);
  return config.loadConfig();
});

This ensures configuration is available before the application renders.

Runtime configuration is an advanced pattern and is not required for most applications.


Choosing a strategy

Criteria Build-time Runtime
Change without rebuild No Yes
Startup performance Faster Slight delay
Complexity Low Moderate
Deployment flexibility Limited High

Use build-time configuration for most applications, and runtime configuration when you need to deploy the same build across multiple environments.

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