I have an angular directive that isn't quite rendering correctly.
here's the html:
<cloud-login ng-repeat='c in ctrl.clouds' cloud="{{c}}"></cloud-login>
and the directive:
function CloudLoginDirective() {
return {
restrict: 'AE',
template: '<a ng-click="ctrl.cloudLogin("{{cloud}}")"><img ng-src="../images/{{cloud}}.png"/></a>',
link: function(scope, element, attrs) {
attrs.$observe('cloud', function(cloud) {
scope.cloud = cloud;
});
}
};
}
In my template, only the ng-src correctly populates with the appropriate text.
The ng-click does not.
Any hints?
Best.