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

model.attr() in the view template?

$
0
0
Hello there,

I can't seem to find how EJS files should get model properties. I know that within models and controllers you use this.attr('foo') but what about in EJS files?

  1. <%= model.attr('foo'); %>
Would that be correct? 


Viewing all articles
Browse latest Browse all 3491

Trending Articles