This project was generated using Angular CLI version 21.2.24.
To start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
The dashboard imports the array in src/app/data/users.json and uses
@for (user of users; track user.id) to render one app-user-card per user.
Each card receives the current object through [user]="user"; inside the card,
user() reads the input signal, so user().name accesses its name.
IDs must be unique because Angular uses them to track cards.
Avatar paths are relative to the application base URL, such as
assets/images/avatars/Gerrit-Rieckers.jpg. Add photos under
src/app/assets/images/avatars and use null for users without a photo;
the card displays the user's initial instead.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpTo build the project run:
ng buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Vitest test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.
Generated via https://tweakcn.com/editor/theme
Theme token
npx shadcn@latest add https://tweakcn.com/r/themes/cmvbii15c000004l250vcf6ue
To add a deployment, you need to add the following variables to your GitHub repository's secrets.
DEPLOY_HOST: "serverxy.host.com".DEPLOYMENT_USER: "userxyz".DEPLOYMENT_PORT: "22".DEPLOYMENT_PATH: "www/some-path/domain-folder".DEPLOYMENT_KEY: "SOME_BASE_64_KEY".
This project is using Lucide Angular
import { Component } from '@angular/core';
import { LucideFileText } from '@lucide/angular'; // Import the Lucide icon component
@Component({
selector: 'app',
template: '<svg lucideFileText></svg>',
imports: [LucideFileText],
})
export class App {}import { Component, computed, signal } from '@angular/core';
import { LucideDynamicIcon, LucideCircleCheck, LucideCircleX } from '@lucide/angular';
@Component({
selector: 'app',
template: `<svg [lucideIcon]="icon()"></svg>`,
imports: [LucideDynamicIcon],
})
export class App {
protected readonly model = signal<boolean>(true);
protected readonly icon = computed(() => (this.model() ? LucideCircleCheck : LucideCircleX));
}<svg [lucideIcon]="icon()"></svg>Test