{"action":"created","issue":{"url":"https://api.github.com/repos/turbolinks/turbolinks/issues/71","repository_url":"https://api.github.com/repos/turbolinks/turbolinks","labels_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/71/comments","events_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/71/events","html_url":"https://github.com/turbolinks/turbolinks/issues/71","id":146977315,"number":71,"title":"Angular","user":{"login":"tibastral","id":33167,"avatar_url":"https://avatars.githubusercontent.com/u/33167?v=3","gravatar_id":"","url":"https://api.github.com/users/tibastral","html_url":"https://github.com/tibastral","followers_url":"https://api.github.com/users/tibastral/followers","following_url":"https://api.github.com/users/tibastral/following{/other_user}","gists_url":"https://api.github.com/users/tibastral/gists{/gist_id}","starred_url":"https://api.github.com/users/tibastral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibastral/subscriptions","organizations_url":"https://api.github.com/users/tibastral/orgs","repos_url":"https://api.github.com/users/tibastral/repos","events_url":"https://api.github.com/users/tibastral/events{/privacy}","received_events_url":"https://api.github.com/users/tibastral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T16:35:51Z","updated_at":"2016-05-18T08:03:52Z","closed_at":null,"body":"Hello everyone,\r\nFirst thank you for this amazing project.\r\n\r\nI had an old turbolinks project with some angularjs.\r\n\r\nWhen I migrated to turbolinks 5, the angular code runs when I load a page from http, but when I click on a link inside my project, the ng-app and ng-controller doesn't do anything.\r\n\r\nThank you for your help."},"comment":{"url":"https://api.github.com/repos/turbolinks/turbolinks/issues/comments/219954645","html_url":"https://github.com/turbolinks/turbolinks/issues/71#issuecomment-219954645","issue_url":"https://api.github.com/repos/turbolinks/turbolinks/issues/71","id":219954645,"user":{"login":"tibastral","id":33167,"avatar_url":"https://avatars.githubusercontent.com/u/33167?v=3","gravatar_id":"","url":"https://api.github.com/users/tibastral","html_url":"https://github.com/tibastral","followers_url":"https://api.github.com/users/tibastral/followers","following_url":"https://api.github.com/users/tibastral/following{/other_user}","gists_url":"https://api.github.com/users/tibastral/gists{/gist_id}","starred_url":"https://api.github.com/users/tibastral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibastral/subscriptions","organizations_url":"https://api.github.com/users/tibastral/orgs","repos_url":"https://api.github.com/users/tibastral/repos","events_url":"https://api.github.com/users/tibastral/events{/privacy}","received_events_url":"https://api.github.com/users/tibastral/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T08:03:52Z","updated_at":"2016-05-18T08:03:52Z","body":"That’s what I did at the end :\n\n  document.addEventListener(\"turbolinks:load\", function () {\n    angular.bootstrap(\"body\", [‘myControllerName']);\n  })\n\n—\nThibaut\n\nOn 17 mai 2016 at 20:11:35, Jeffrey Hardy (notifications@github.com) wrote:\n\nMy guess is that your previous code was bootstrapping Angular in response to Turbolinks Classic's page:load or page:change. Those events don't exist in Turbolinks 5. I suggest bootstrapping Angular in response to turbolinks:load, which fires both on the initial page load and after every Turbolinks visit.\n\nThat's just a guess, though. Did you end up figuring it out?\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly or view it on GitHub\n\n"}}