dalle3430
12/07/2023, 9:19 AMleekelleher
12/07/2023, 12:39 PMeventsService
as you mentioned.
It'll emit
a custom event on initial load (after a slight $timeout
), sending the $scope.model
payload...
https://github.com/leekelleher/umbraco-contentment/blob/4.5.1/src/Umbraco.Community.Contentment/DataEditors/ConfigurationEditor/configuration-editor.js#L208
I also fire it from a setDirty()
function, to keep the values in sync.
Then on the other side, it'll pick up the event and act accordingly...
https://github.com/leekelleher/umbraco-contentment/blob/4.5.1/src/Umbraco.Community.Contentment/DataEditors/DataList/data-list.preview.js#L48
Hope this helps.