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

Re : Passing parent scope to components is undocumented

$
0
0
Ahh, did not know that. I had actually been engineering around that by making sure there aren't property naming conflicts. Regardless, the dot notation isn't documented. A common case is if you're looping through a list, and want to pass the current object, like such:

  1. {{#foo}}
  2.   <bar foo="."></bar>
  3. {{/foo}}


Viewing all articles
Browse latest Browse all 3491

Trending Articles