title: Getting a value sent by SignalR with AngularJS
body: <p>I'm trying to write a very simple message on the screen that when <a href="/questions/tagged/signalr" class="post-tag" title="show questions tagged &#39;signalr&#39;" rel="tag">signalr</a> send a value this message gets updated.</p>
  
  <p>I have a very simple Hub:</p>
  
  <pre><code>public class Chat : Hub
  {
      public Task Send(string message)
      {
          return Clients.All.InvokeAsync("Send", message);
      }
  }
  </code></pre>
  
  <p>On the front-end I have the following <a href="/questions/tagged/html" class="post-tag" title="show questions tagged &#39;html&#39;" rel="tag">html</a>:</p>
  
  <pre><code>&lt;div ng-app="myApp" ng-controller="myCtrl"&gt;
      &lt;p ng-bind="value"&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the script is:</p>
  
  <pre><code>var app = angular.module('myApp', []);
  app.controller('myCtrl', function ($scope) {
      $scope.value = "My Test Value";
  });
  
  chatConnection.on('Send', (message) =&gt; {
      app.scope.value = message;
  });
  </code></pre>
  
  <p>What I am failing to understand is how do I access that value parameter so that I may update it.</p>
  
  <p>EDIT:</p>
  
  <p>The SignalR part works, the message comes through. The problem is that I am not sure how to update the value that is inside of that controller.  <code>app.scope.value = message;</code></p>