title: XMPP chat using node js and Angular
body: <p>This code gets a message from an XMPP server and logs it to the console:</p>
  
  <pre><code>connection.on('online', function(data) {
  
      connection.on('stanza', function(stanza) {
          var body = stanza.getChild('body');
          var message = body.getText();
  
          console.log('with out socket: ', message);
  
      });
  });
  </code></pre>
  
  <p>This displays the message in the console, but how can I send this message for display on the HTML page?</p>
  
  <p>I'm using Angular JS.</p>