{"action":"closed","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/755","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/755/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/755/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/755","id":105112798,"number":755,"title":"directives inserted multiple times in generated index.html","user":{"login":"psvensson","id":39554,"avatar_url":"https://avatars.githubusercontent.com/u/39554?v=3","gravatar_id":"","url":"https://api.github.com/users/psvensson","html_url":"https://github.com/psvensson","followers_url":"https://api.github.com/users/psvensson/followers","following_url":"https://api.github.com/users/psvensson/following{/other_user}","gists_url":"https://api.github.com/users/psvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/psvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psvensson/subscriptions","organizations_url":"https://api.github.com/users/psvensson/orgs","repos_url":"https://api.github.com/users/psvensson/repos","events_url":"https://api.github.com/users/psvensson/events{/privacy}","received_events_url":"https://api.github.com/users/psvensson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-06T19:27:26Z","updated_at":"2015-09-17T17:37:13Z","closed_at":"2015-09-17T17:37:13Z","body":"Hi, I've noticed a problem only when using coffeescript, for some reason. At random times, I get the error;\r\nError: [$compile:multidir] Multiple directives [acmeNavbar (module: crawler), acmeNavbar (module: crawler)] asking for template on: <acme-navbar creationdate=\"main.creationDate\">\r\n\r\nOne fo the possible reasons that this can happen is that one loads the same directive definition twice, but I htought it unlikely so looked everywhere else.\r\n\r\nHowever, looking at the generated index.html I found this at the end..  (image attached)\r\n![screenshot-35](https://cloud.githubusercontent.com/assets/39554/9706163/e2d4807c-54dd-11e5-8114-ffe4ec73400c.png)\r\n\r\nSo clearly the gulp procedure insert the same files several times. Not in the beginning, but when I start adding new custom directives (for instance) this is what happens - when I'm using coffeescript!  Very odd.\r\n\r\n"}}