title: How do you write a "Hello, world!" for Comet in AngularJS?
body: <p>I've looked and haven't been able to find out how to handle a basic Comet proof-of-concept in AngularJS. I'm looking at Comet implemented by the client making repeated Ajax calls, rather than streaming JavaScript.</p>
  
  <p>If I have a server-side CGI:</p>
  
  <pre><code>#!/bin/bash
  echo "Content-type: application/json"
  echo ""
  echo "'"Hello world at "`/bin/date`"'!'"'"
  </code></pre>
  
  <p>What is a bare-bones AngularJS proof of concept that will query the server every second, and modulo network latency and the like, display a "Hello world!" that includes the server time?</p>