Loading...
Loading...
Angular TypeScript framework with dependency injection and RxJS. Use for enterprise SPAs.
npx skill4agent add g1joshi/agent-skills angularimport { Component, signal, computed } from "@angular/core";
@Component({
selector: "app-counter",
standalone: true,
template: `
<p>Count: {{ count() }}</p>
<p>Double: {{ double() }}</p>
<button (click)="increment()">Increment</button>
`,
})
export class CounterComponent {
count = signal(0);
double = computed(() => this.count() * 2);
increment() {
this.count.update((c) => c + 1);
}
}Zone.jsNgModule@defer@defer (on viewport) {
<heavy-chart />
} @placeholder {
<p>Loading...</p>
}signal()BehaviorSubjectinject()inject(Service)provideExperimentalZonelessChangeDetection()NgModuleCommonModule@if@for*ngIf*ngFor