I'm having a problem while trying to render another HTML with Directives in AngularJS.
if the template HTML is without events, It works just fine :
<button id="{{item.id}}">Some Button !</button>
would be rendered to :
<button id="123">Some Button !</button>
but if the template HTML has some events, the angular expression wouldn't work :
<button id="{{item.id}}" onmouseover="doSomething({{item.id}})">Some Button !</button>
would be rendered to :
<button id="123" onmouseover="doSomething({{item.id}}">Some Button !</button>
I tried to import another HTML and change the contents dynamically using both Directives & ngInclude, but both of them react the same way when they try to include the template HTML.
This problem only occures in events (onfocus,onmouseover,onclick) and any other part of the html is successfully rendered.
I want to Import an HTML and I want the expressions to be completely replaced by the data. one of the reasons for doing this is that we have a lot of custom JSP Tag Libraries which we want to convert to AngularJS Directives. in these tags there are lots of events, for example our own custom "AutoComplete" Tag has more than 10 events and they could be easily converted to a directive only if angular would render our expressions inside those events (But It's NOT !)
Thanks