This is a demo for angular-socket-resource.
Check it out at http://angular-socket-resource-demo.michaschwab.de to see the real time updates happening automatically by opening the page in two browser windows and editing the articles while seeing the live changes in the other browser window.
This is done without deploying any changes to the default articles controller packaged in the yeoman MEAN generator.
-
Git clone this package
git clone https://github.com/michaschwab/angular-socket-resource-demo.git
-
Install node dependencies
npm install
-
Install bower dependencies
bower install
-
Start the server
grunt
This demo is almost exactly what you get after running yo meanjs
and then following the angular-socket-resource instructions.
The only difference is that I took out the security checks of the articles controller to make it publicly accessible and editable for ease of trying.