angularjs - How to bind variable when calling directive using element.addClass -


i calling directive adding class element , compiling element eg

var el = angular.element(document.queryselector(".ctrl-outer-container")); el.addclass('directive-name); $compile(el)(scope); 

while calling directive way how can bind variable passing directive (2 way binding)

i tried

el.attr('attr-name', attr.value) 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -