{"action":"created","issue":{"url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/44","labels_url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/44/comments","events_url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/44/events","html_url":"https://github.com/mendhak/angular-intro.js/issues/44","id":56084114,"number":44,"title":"Is there a way to exit/destroy an intro instance from within a controller?","user":{"login":"constellates","id":4325905,"avatar_url":"https://avatars.githubusercontent.com/u/4325905?v=3","gravatar_id":"","url":"https://api.github.com/users/constellates","html_url":"https://github.com/constellates","followers_url":"https://api.github.com/users/constellates/followers","following_url":"https://api.github.com/users/constellates/following{/other_user}","gists_url":"https://api.github.com/users/constellates/gists{/gist_id}","starred_url":"https://api.github.com/users/constellates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constellates/subscriptions","organizations_url":"https://api.github.com/users/constellates/orgs","repos_url":"https://api.github.com/users/constellates/repos","events_url":"https://api.github.com/users/constellates/events{/privacy}","received_events_url":"https://api.github.com/users/constellates/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T21:00:33Z","updated_at":"2015-01-30T21:23:32Z","closed_at":null,"body":"I have a page that requires multiple separate introjs flows that are triggered by various actions. So for example the user will land on the page and immediately view the first help flow. Then if they used the search bar... when a search is executed another help flow will begin. \r\n\r\nMy strategy for doing this so far is when the search is executed I change the steps in my options object and re-call the ng-intro-method. This works fine if the user dismissed the first flow but if they execute a search while it's open there are conflicts between the two intro flows.\r\n\r\nIs there a good way to call the method that the exit button does from within a controller? Or otherwise destroy the introjs instance?"},"comment":{"url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/comments/72272621","html_url":"https://github.com/mendhak/angular-intro.js/issues/44#issuecomment-72272621","issue_url":"https://api.github.com/repos/mendhak/angular-intro.js/issues/44","id":72272621,"user":{"login":"constellates","id":4325905,"avatar_url":"https://avatars.githubusercontent.com/u/4325905?v=3","gravatar_id":"","url":"https://api.github.com/users/constellates","html_url":"https://github.com/constellates","followers_url":"https://api.github.com/users/constellates/followers","following_url":"https://api.github.com/users/constellates/following{/other_user}","gists_url":"https://api.github.com/users/constellates/gists{/gist_id}","starred_url":"https://api.github.com/users/constellates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constellates/subscriptions","organizations_url":"https://api.github.com/users/constellates/orgs","repos_url":"https://api.github.com/users/constellates/repos","events_url":"https://api.github.com/users/constellates/events{/privacy}","received_events_url":"https://api.github.com/users/constellates/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T21:23:32Z","updated_at":"2015-01-30T21:23:32Z","body":"I ended up forking and writing a solution to this that you can see here https://github.com/constellates/angular-intro.js/commit/14827bd20504b1a2361d8a5e4bfdcde9afbd63c9\r\nIt also allows you to pass a callback to execute after calling intro.exit()\r\n\r\nLet me know if you're interested in maintaining this change and I can create a pull request.\r\n\r\nThanks."}}