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
@Component({ /* ... */ })
export class PriceTag implements OnChanges {
  @Input() price = 0;
  @Input() discount = 0;
  finalPrice = 0;

  ngOnChanges() {
    this.finalPrice = this.price * (1 - this.discount);
  }
}
Exploring Angular Native. Native mobile apps with Angular! October 21, 4:30 PM UTC. Angular Space TV livestream cover: Armen Vardanyan on a purple space background, with Angular logo and X, YouTube, Twitch, LinkedIn icons.
After: the same component using httpResource, with the resource line highlighted. Loading, error and value all come from one resource:

@Component({
  template: `
    @if (orders.isLoading()) {
      <app-spinner />
    } @else if (orders.error()) {
      <p>Could not load orders</p>
    } @else {
      @for (o of orders.value(); track o.id) {
        <app-order-row [order]="o" />
      }
    }
  `,
})
export class OrdersPage {
  readonly orders = httpResource<Order[]>(() => '/api/orders', {
    defaultValue: [],
  });
}
Photo, no description
Angular single-file component in a dark editor, with the two queryParamsHandling lines and the two input lines highlighted:

@Component({
  template: `
    <a [routerLink]="[]" [queryParams]="{ status: 'unpaid', page: 1 }"
       queryParamsHandling="merge">Unpaid</a>
    <a [routerLink]="[]" [queryParams]="{ page: page() + 1 }"
       queryParamsHandling="merge">Next page</a>`,
})
export class OrdersPage {
  readonly status = input('all', { transform: (v?: Status) => v ?? 'all' });
  readonly page = input(1, { transform: (v?: string) => numberAttribute(v, 1) });
  readonly orders = httpResource<Order[]>(() =>
    `/api/orders?status=${this.status()}&page=${this.page()}`);
}
Photo, no description
Xamin – Professional Data Science  Analytics WordPress Theme
Before: the old dark code screenshot style, a dark window with colorful syntax highlighting. The code is an Angular directive:

@Directive({ selector: 'button[uiButton], a[uiButton]', host: {
  '[attr.disabled]': '!isLink && disabled() ? "" : null',
  '[attr.aria-disabled]': '(isLink && disabled()) || null',
  '(click)': 'isLink && disabled() && $event.preventDefault()',
} })
export class UiButton {
  protected readonly isLink = inject(HOST_TAG_NAME) === 'a';
  readonly disabled = input(false, { transform: booleanAttribute });
}
Photo, no description
Exploring Angular Native. Native mobile apps with Angular! October 21, 4:30 PM UTC. Angular Space TV livestream cover: Armen Vardanyan on a purple space background, with Angular logo and X, YouTube, Twitch, LinkedIn icons.
@Directive({ selector: 'button[uiButton], a[uiButton]', host: {
  '[attr.disabled]': '!isLink && disabled() ? "" : null',
  '[attr.aria-disabled]': '(isLink && disabled()) || null',
  '(click)': 'isLink && disabled() && $event.preventDefault()',
} })
export class UiButton {
  protected readonly isLink = inject(HOST_TAG_NAME) === 'a';
  readonly disabled = input(false, { transform: booleanAttribute });
}
Photo, no description
export const cartEvents = eventGroup({ source: 'Cart Page', events: {
  added: type<CartItem>(), removed: type<number>(),
} });
export const CartStore = signalStore(
  withState({ items: [] as CartItem[] }),
  withReducer(
    on(cartEvents.added, ({ payload }, { items }) => ({ items: [...items, payload] })),
    on(cartEvents.removed, ({ payload }, { items }) => ({ items: items.filter((i) => i.id !== payload) })),
  ),
);
export const orderTools = provideExperimentalWebMcpTools([{
  name: 'find_orders',
  description: 'Lists the user orders with the given status',
  inputSchema: {
    type: 'object', required: ['status'],
    properties: { status: { type: 'string', enum: ['pending', 'shipped'] } },
  },
  execute: ({ status }) => inject(OrderService).byStatus(status),
}]);
@let current = status();
@switch (current) {
  @case ('pending') { <span>Waiting for payment</span> }
  @case ('shipped') { <span>On the way</span> }
  @case ('delivered') { <span>Delivered</span> }
  @case ('refunded') { <span>Refunded</span> }
  @default never;
}

✔ Application bundle generation complete.
UBold – 27 in One Admin  Dashboard Template
Inventual – Angular, NextJs  NuxtJs Inventory Admin Template + RTL
Banner mit Foto des Trainers und Infos:
ONLINE-Workshop Angular & Signals
5 Tage Online-Intensivkurs mit Ferdinand Malcher, Google Developer Expert (GDE) und Buchautor

19.-25. November 2026

Angular, Signals, HTTP, Resource API, Routing,
AI, Signal Forms, Vitest, RxJS und vieles mehr
The Angular Native banner: its red Angular "A" logo and the headline "Build native apps with Angular." on a dark background, with "Angular components rendered as real iOS and Android views. Powered by Expo." and an ALPHA tag. On the right, two phones show a fitness app with activity rings and a music player.
Photo, no description
Load more