i have simple a index.html page, where i include some htmls files with angular.js
<div data-ng-include="'header.html'"></div>
with this function I include the header into my index page, everything works fine.
i have now a simple alert function:
$('#myButton').click(function(){
alert('hello');
});
and i have the simple div:
<div id="myButton">test</div>
if i include the div into my index.html everything works fine - but if i include the same div into the header.html which is included by the angular.js there is no reaction or error...
I think the id is then not known to the javascript call.
Any idea, i can get this working? I don't want to give up on the includes....