function updateValueModel(val) {
                // Sanitize the message with the DOMPurify config.
                const value = sanitize.message(val || '');
                // Assume something might use scope.value so use $applyAsync
                scope.$applyAsync(() => (scope.value = value));
            }
/**
             * Update the value of the message and send the state to the application
             * @param  {String}  val            Body
             * @return {void}
             */
Update the value of the message and send the state to the application
@param  {String}  val            Body
@return {void}
Update the value of the message and send the state to the application @param { String } val Body @return { void }
function updateValueModel(val) {
                const value = sanitize.message(val || '');
                scope.$applyAsync(() => (scope.value = value));
            }
function updateValueModel ( val ) { const value = sanitize . message ( val || '' ) ; scope . $applyAsync ( ( ) => ( scope . value = value ) ) ; }
Update the value of the message and send the state to the application
 @param  {String}  val            Body
 @return {void}
Update the value of the message and send the state to the application @param { String } val Body @return { void }
// Sanitize the message with the DOMPurify config. // Assume something might use scope.value so use $applyAsync