{"action":"created","issue":{"url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/36","repository_url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas","labels_url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/36/comments","events_url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/36/events","html_url":"https://github.com/iamphill/Bootstrap-Offcanvas/issues/36","id":142191031,"number":36,"title":"The offcanvas navbar is not working if the navbar definition is loaded by ajax","user":{"login":"papaiatis","id":3688096,"avatar_url":"https://avatars.githubusercontent.com/u/3688096?v=3","gravatar_id":"","url":"https://api.github.com/users/papaiatis","html_url":"https://github.com/papaiatis","followers_url":"https://api.github.com/users/papaiatis/followers","following_url":"https://api.github.com/users/papaiatis/following{/other_user}","gists_url":"https://api.github.com/users/papaiatis/gists{/gist_id}","starred_url":"https://api.github.com/users/papaiatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papaiatis/subscriptions","organizations_url":"https://api.github.com/users/papaiatis/orgs","repos_url":"https://api.github.com/users/papaiatis/repos","events_url":"https://api.github.com/users/papaiatis/events{/privacy}","received_events_url":"https://api.github.com/users/papaiatis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-20T18:38:52Z","updated_at":"2016-03-20T19:32:26Z","closed_at":null,"body":"I have an AngularJs application in which the header part is defined in a separate file thus it is loaded into the HTML by an AJAX call. This case the navbar toggle button does not work. It won't open the offcanvas menu. \r\nHowever if I re-run the entire bootstrap-offcanvas javascript code in F12 console the navbar toggle works. \r\nSo this means this component does not support navbar-s that are loaded by AJAX.\r\nPlease add support for it!"},"comment":{"url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/comments/198998288","html_url":"https://github.com/iamphill/Bootstrap-Offcanvas/issues/36#issuecomment-198998288","issue_url":"https://api.github.com/repos/iamphill/Bootstrap-Offcanvas/issues/36","id":198998288,"user":{"login":"papaiatis","id":3688096,"avatar_url":"https://avatars.githubusercontent.com/u/3688096?v=3","gravatar_id":"","url":"https://api.github.com/users/papaiatis","html_url":"https://github.com/papaiatis","followers_url":"https://api.github.com/users/papaiatis/followers","following_url":"https://api.github.com/users/papaiatis/following{/other_user}","gists_url":"https://api.github.com/users/papaiatis/gists{/gist_id}","starred_url":"https://api.github.com/users/papaiatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papaiatis/subscriptions","organizations_url":"https://api.github.com/users/papaiatis/orgs","repos_url":"https://api.github.com/users/papaiatis/repos","events_url":"https://api.github.com/users/papaiatis/events{/privacy}","received_events_url":"https://api.github.com/users/papaiatis/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T19:32:26Z","updated_at":"2016-03-20T19:32:26Z","body":"I've made you one: http://plnkr.co/edit/ZmUVTgp6xJctlZ0Xk14R?p=preview\r\nThe trick is `ng-include` which loads the specified html file into that exact spot."}}