I have the following directive:
angular.module('SuperCtrl').directive('listDirective',function(){
return {
restrict:'E',
scope: {
title:"="
},
templateUrl: '../templates/listWidget.html'
};
});
I want to be able to reuse it and to do this I want to be able to pass parameter as a title.
In the template I have this fragment:
<h3 class="voice voice-brand pull-left" style="font-weight:bold">{{title}}</h3>
then in index.html
:
<list-directive title="test1" ng-show="eventsActive"></list-directive>
But when I open this page I just see {{title}}
.
What is the correct way to pass "title"?
Thanks!