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

Passing scope value to global helper in can.Component

$
0
0
How do I pass a value from the can.Component's scope as the parameter to a mustache global helper function?

<h1>{{l10n appTitle}}</h1>

l10n is the global helper and appTitle is defined on the scope of the can.Component

Above syntax does not work.

appTitle is a string. If I have it there by itself, the string is displayed. 

Viewing all articles
Browse latest Browse all 3491

Latest Images

Trending Articles



Latest Images