<template>
    <lightning-card
        title="ApexWireMethodToProperty"
        icon-name="custom:custom63"
    >
        <div class="slds-var-m-around_medium">
            <template lwc:if={contacts.data}>
                <template for:each={contacts.data} for:item="contact">
                    <p key={contact.Id}>{contact.Name}</p>
                </template>
            </template>
            <template lwc:elseif={contacts.error}>
                <c-error-panel errors={contacts.error}></c-error-panel>
