Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Conventions, strategy, syntax, file extension for external mustache views/templates?

$
0
0
Well I'm having issues with findAll() returning a response when my data structure is:
  1. {
  2.       "data": [
  3.             {
  4.                   "key": "val"
  5.             },
  6.             ...
  7.       ]
  8. }
vs this which works
  1. [
  2.       {
  3.             "key": "val"
  4.        },
  5.        ...
  6. ]
But it is not advised to return a top level array.  CAN docs even say this Note: .findAll can also accept an array, but you probably should not be doing that.

Thoughts?

Viewing all articles
Browse latest Browse all 3491

Trending Articles