t;input ng-init=&quot;message=&#39;test&#39;&quot; ng-model=&quot;message&quot; &gt;&#10;  &lt;button ng-click=&quot;callNotify(message);&quot;&gt;NOTIFY&lt;/button&gt;&#10;  &lt;p&gt;(you have to click 3 times to see an alert)&lt;/p&gt;&#10;&lt;/div&gt;</code></pre>
    </div>
  
    <div class="runnable-example-file" 
      name="script.js"
      language="js"
      type="js">
      <pre><code>angular.&#10; module(&#39;myServiceModule&#39;, []).&#10;  controller(&#39;MyController&#39;, [&#39;$scope&#39;,&