In HTML:
<ul class="list-group">
<li ng-repeat="item in simpleListVM.datasource track by $index" class="list-group-item">
<simple-list-items listitem="item" listitemid="{{item.data.name + $index + 1}}"></simple-list-items>
</li>
</ul>
In Directive:
scope: {
listitem: '=',
listitemid:'&'
}
When I run the application it shows error.
Syntax Error: Token '{' invalid key at column 2 of the expression [{{item.data.name +$index + 1}}] starting at [{item.data.name +$index + 1}}].