My best understanding of the angular ng-include
is that it doesn't run scripts by default which means you really can't include new directive definitions or other angular/javascript components in a partial. To support that I did a bit of research and found the following links:
- Dynamic Directive - AngularJS directive loaded dynamically in ng-include do not work
- Load Script From Partial - https://groups.google.com/forum/?fromgroups=#!topic/angular/H4haaMePJU0
Personally I ran into something somewhat similar on this stack question where javascript is included dynamically but doesn't get run. You can manually run javascript using a custom directive but it isn't extremely easy.
Bottom Line - I think the bottom line here is if you need to include scripts in a partial there are ways to do it but it is extra work and isn't supported terribly well.