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

Re : Mustache views and deferreds

$
0
0
When you pass a Deferred in the can.view data it will wait until it resolves and use the result:

  1. can.view('view.mustache', { def: def() });

  1. <header>{{def}}</header>

Viewing all articles
Browse latest Browse all 3491

Trending Articles