AngularJs pass instance of each ng-repeat in HTML to directive
I'm thinking this should be simple but I'm missing something. How can I pass a flowObj in my ng-repeat below to my Directive? I want to pass it to my directive then on click use that FlowObj then apply some logic. I tried using the commented code in my directive scope: { test:"@" } But it seems to screw up my css . HTML: <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div id="center_outer"> <div id="center_inner" ng-controller="CtrlPageFlow"> <div flowclick class="cflow" ng-repeat="flowObj in flows" > {{flowObj.name}} </div> <