AngularJS Directive element method binding – TypeError: Cannot use ‘in’ operator to search for ‘functionName’ in 1
Since you defined an expression binding (&), you need to explicitly call it with an object literal parameter containing id if you want to bind it in the HTML as edit-website=”editWebsite(id)”. Indeed, Angular needs to understand what this id is in your HTML, and since it is not part of your scope, you need to … Read more