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

Re : Component bindings lead to max stack size reached

$
0
0
I updated to 2.3, but still do not get the hang of it.
Right now it is like this: 
<app-controller {greeting}="World" />
thinking that this would bind greeting in the app-controller to "World"
  1.       {
  2.       tag: 'app-controller'
  3.         template: 'AA{{greeting}}BB',
  4.         viewModel: {
  5.             greeting: 'hello app-controller'
  6.         }

it always renders AAhello app-controllerBB

I am aiming at using something like this greeting="{state.greeting}" which would change to AAhiBB whenever I use state.attr('greeting', 'hi')

Viewing all articles
Browse latest Browse all 3491

Trending Articles