Assuming I have this demo directive:
app.directive('name', function(){
return{
restrict: 'E',
template: '<div ng-class="done" ng-click="doSomething(data.done, index)">{{data.text}}<button ng-click="remove(index)">delete</button></div>'
}
});
Is it ok just to break the string for the template, or should I add "+" or something in the end of each line? e.g. -
app.directive('name', function(){
return{
restrict: 'E',
template: '<div ng-class="done" ng-click="doSomething(data.done, index)">
{{data.text}}
<button ng-click="remove(index)">delete</button>
</div>'
}
});
Thank you :)