Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Hands on: TanStack Query! How TanStack can replace resources in your Angular App. October 28, 4:30 PM UTC. Angular Space TV livestream with Armen Vardanyan, on X, YouTube, Twitch and LinkedIn.
Photo, no description
An Angular component in quantity.ts, a quantity stepper. Lines 4 and 6, highlighted, use quantity-- and quantity++ directly in (click) event bindings:

@Component({
  selector: 'app-quantity',
  template: `
    <button (click)="quantity--" [disabled]="quantity === 1">-</button>
    <span>{{ quantity }}</span>
    <button (click)="quantity++">+</button>
  `,
})
export class Quantity {
  quantity = 1; // a plain field: `++` on a signal is a type error
}
TypeScript code in books-api.ts: an Angular service whose book(id) method returns TanStack Query's queryOptions, with the queryOptions line highlighted:

@Injectable({ providedIn: 'root' })
export class BooksApi {
  private readonly http = inject(HttpClient);

  book(id: number) {
    return queryOptions({
      queryKey: ['book', id],
      queryFn: () => lastValueFrom(this.http.get<Book>(`/api/books/${id}`)),
      staleTime: 30_000,
    });
  }
}
Hands on: TanStack Query! How TanStack can replace resources in your Angular App. October 28, 4:30 PM UTC. Angular Space TV livestream with Armen Vardanyan, on X, YouTube, Twitch and LinkedIn.
Hands on: TanStack Query! How TanStack can replace resources in your Angular App. October 28, 4:30 PM UTC. Angular Space TV livestream with Armen Vardanyan, on X, YouTube, Twitch and LinkedIn.
An NgRx Signal Store in cart.store.ts. Line 9, highlighted, mutates the array in place inside patchState:

export const CartStore = signalStore(
  withState({ items: [] as Item[] }),
  withComputed((store) => ({
    count: computed(() => store.items().length),
  })),
  withMethods((store) => ({
    addItem(item: Item) {
      patchState(store, (state) => {
        state.items.push(item); // same array, new contents
        return { items: state.items };
      });
    },
  })),
);

// After calling addItem() twice:
// the list renders 2 items, but count() is still 0
Angular lernen in deinem Tempo
TypeScript code in audit-map.ts, a custom RxJS operator built from throttle and concatMap; the throttle line is highlighted:

import { concatMap, defer, finalize, from, Subject, throttle } from 'rxjs';
import type { ObservableInput, OperatorFunction } from 'rxjs';

export function auditMap<T, R>(
  project: (value: T) => ObservableInput<R>,
): OperatorFunction<T, R> {
  return (source) =>
    defer(() => {
      const done = new Subject<void>();

      return source.pipe(
        // first value goes through, then only the latest until `done`
        throttle(() => done, { leading: true, trailing: true }),
        concatMap((value) =>
          from(project(value)).pipe(finalize(() => done.next())),
        ),
      );
    });
}
Xenon – Bootstrap Admin Theme with AngularJS
An Angular component in product-page.ts with two defer blocks; the hydrate line is highlighted:

@Component({
  selector: 'app-product-page',
  imports: [Reviews, Checkout],
  template: `
    <!-- Lazy-loads the code when it scrolls into view -->
    @defer (on viewport) {
      <app-reviews />
    } @placeholder {
      <p>Reviews</p>
    }

    <!-- Rendered on the server, hydrated on the first click -->
    @defer (hydrate on interaction) {
      <app-checkout />
    }
  `,
})
export class ProductPage {}
Mave – Angular 19 AI, Blockchain  Metaverse Project Launchpad Template
An Angular NgModule in app.module.ts, with the entryComponents line highlighted:

@NgModule({
  declarations: [AppComponent, ConfirmDialogComponent],
  imports: [BrowserModule, MatDialogModule],
  // Forget this line and enjoy: "No component factory found
  // for ConfirmDialogComponent. Did you add it to entryComponents?"
  entryComponents: [ConfirmDialogComponent],
  bootstrap: [AppComponent],
})
export class AppModule {}
A terminal running ng serve in an Angular 12 project. The output reads:

$ ng serve
- Generating browser application bundles (phase: setup)...
Processing legacy "View Engine" libraries:
- @angular/core [es2015/esm2015]
- @angular/common [es2015/esm2015]
- @angular/forms [es2015/esm2015]
- @angular/router [es2015/esm2015]
- ngx-toastr [es2015/esm2015]
Encourage the library authors to publish an Ivy distribution.

The last line is highlighted.
@Component({
  selector: 'app-search-panel',
  template: `
    <button (click)="open()">Search</button>
    @if (isOpen()) {
      <input #search placeholder="Search orders" />
    }
  `,
})
export class SearchPanel {
  private readonly injector = inject(Injector);
  protected readonly isOpen = signal(false);
  private readonly search = viewChild<ElementRef<HTMLInputElement>>('search');

  protected open() {
    this.isOpen.set(true);
    afterNextRender(() => this.search()?.nativeElement.focus(), {
      injector: this.injector,
    });
  }
}
Photo, no description
Screenshot of an online course lesson titled “Exercise Solution: Vitest Browser Mode” in the “Vitest Browser Mode” module of a testing course. On the left, the lesson list includes “Why Browser Mode?”, “Why Polling Beats detectChanges and whenStable”, and “Exercise: Add Recipe to Meal Plan”. In the center, the Vitest UI is filtered to “recipe-search” and shows one passing test, “RecipeSearch › searches recipes without filtering” (55 ms), running in browser (chromium). The Browser UI panel previews the component at 414×896 px, rendering recipe cards for “Burger” and “Salad”, and the report says the test passed without errors. An instructor in a red apron appears in a webcam overlay at the top right.
Photo, no description
// AG-UI runtime: in front of the ADK agent
const agent = new HttpAgent({ url: 'http://localhost:8000/agent' });
agent.use(
  new A2UIMiddleware({
    schema: catalog,
    injectA2UITool: true,
    defaultCatalogId: 'shop',
  }),
);

// Angular: render whatever surfaces the agent composed
this.agent.runAgent({}, {
  onActivitySnapshotEvent: ({ event }) => {
    const ops = event.content['a2ui_operations'];
    if (event.activityType === 'a2ui-surface' && ops) {
      this.renderer.processMessages(ops);
    }
  },
});
Checklist titled: Plain links with withExperimentalPlatformNavigation(). What I tested, with no routerLink anywhere. Working: plain link <a href="/users/2"> (in-app navigation); links in [innerHTML] (CMS / markdown content); script navigation location.href = '/about'; plain GET form (query params reach the component); back button (scroll position restored); guards and resolvers (URL waits for guards, stop cancels). Not working: download link <a href="/report.txt" download>, nothing happens. Angular 22.2, Chrome 155. Experimental since Angular 21.1.
Load more