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"
- {
- tag: 'app-controller'
- template: 'AA{{greeting}}BB',
- viewModel: {
- greeting: 'hello app-controller'
- }
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')