Sets all scope-entries as data-attributes to the element.
Sets scope-entry for the given key as data-attribute to the element when available.
key of scope-entry to look for in scope