PatrickJS / angular-websocket

:arrow_upper_left: The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
https://angularclass.github.io/angular-websocket
MIT License
1.22k stars 194 forks source link

Use variable instead of a collection #127

Open dpsus4 opened 6 years ago

dpsus4 commented 6 years ago

First of all, I'm an AngularJS newbie, so I'm sorry for the trivial question. Why can't I use a simple variable instead of a collection for MyData? I tried to declare MyData as a variable, but it doesn't work. Why?

Thank you in advance