.component(
'testComponent',
{bindings: {name:'<'},
template: `{{$ctrl.name}}<br/>
{{$ctrl.title}}<br/>
{{test.name}}<br/>
{{test.title}}<br/>
{{name}}<br/>
{{title}}<br/>`,
controller: function (){
this.name = 'abc';
this.title = 'def';
},
controllerAs: 'test'
})
This code is to add a component to a module.
There are written 6 expressions in template. But only second one, $ctrl.title is working well. The others are not binded properly.
When I remove name from bindings, then $ctrl.name also works well. But AFAIK all the 6 expressions have to work.
What did I do wrong?