Bear Bibeault wrote:That's creating a function in the scope. So you need to call it like a function, not reference it as a property. (What's inferred by your expression is the function itself, not the result of calling it).
Thanks! that made it partially clear to me! What would then the countryPopulation parameter mean?
May be one other question. Not sure though if this is the relevant forum to ask! I'm looking forward to build a web app and the way I want it is to provide a REST API that the UI will communicate with. For this purpose, I have the following path's:
1. Use AngularJS / NodeJS as the UI layer and expose the Scala backend using
Spray REST API layer.
2. Use Play and expose the Scala backend using the Play Controller model.
Any suggestions on which approach I should go for? What I'm thinking is that I would still need to use some Javascript for DOM manipulation with my second approach. I then have to invest my time and effort to learn Play along with a Javascript framework. What would the suggestion be?