The previous example used a very simple model, consisting of a single String.
A more realistic implementation would add the strings to a list.
<bodyng-app><divng:controller="Main"><ul><ling:repeat="item in items"></li></ul></div><script type='text/javascript'>//<![CDATA[varsource=newEventSource('/events');functionMain($scope){$scope.items=[];source.addEventListener('right',function(e){$scope.$apply(function(){$scope.items.push(e.data);});},false);}//]]>
</script></body>