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
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 });
}