Create an EventTarget associated with the adorned element that can hold scoped state.
npm install be-scopedhtml
Medal List Summer 2024
Rank
NOC
Gold
Silver
Bronze
Total
per-each="country-medal-count of national-medal-list"
per-each-map-idx-to="idx"
per-each-idx-start="1"
>
of
`
What this does:
"Attaches itself" into the "ish" view models that are attached (by mount-observer) to the table and tr elements:
`JavaScript
if(!$0.id){
$0.id = 'be-scoped-' + counter++;
oTR.itemRef += ' ' + $0.id;
}
``