<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Question about User Module]]></title><description><![CDATA[<p dir="auto">How can change datapoint value from user module Angularjs. code like is</p>
<pre><code>app.directive("alertEvent", function(){
    return {
        restrict: "E",
      scope: {
        point: "=",
        check: "="
    },
    link: function(scope, elemnt, attrs){
        
        var audio = new Audio('/rest/v2/file-stores/public/AlarmSound.mp3');
        audio.muted = false;
        
        scope.$watch("point.value", function(newValue, oldValue){
            var P = newValue;
            var Ch = scope.check;
            
            if (P == true){
                if (Ch == true) {
                    for (let n =0; n&lt;10; n++){
                setTimeout(function(){
                    audio.play();
                },6000*n)}
                scope.point.value = false;
                } else {
                    audio.pause();
                }
            } else {
                audio.pause();
            }
        })
    }
    }
});
</code></pre>
<p dir="auto">want to when audio.play() finished change scope.point this datapoint value  to false,How to I do?</p>
]]></description><link>https://forum.mango-os.com/topic/4669/question-about-user-module</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:39:29 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4669.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Jan 2020 15:28:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Question about User Module on Sun, 12 Jan 2020 01:54:32 GMT]]></title><description><![CDATA[<p dir="auto">As shown in the API docs, use <code>scope.point.setValue(false)</code></p>
]]></description><link>https://forum.mango-os.com/post/24477</link><guid isPermaLink="true">https://forum.mango-os.com/post/24477</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sun, 12 Jan 2020 01:54:32 GMT</pubDate></item></channel></rss>