{"action":"created","issue":{"url":"https://api.github.com/repos/Matesign/material-wizard/issues/2","labels_url":"https://api.github.com/repos/Matesign/material-wizard/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Matesign/material-wizard/issues/2/comments","events_url":"https://api.github.com/repos/Matesign/material-wizard/issues/2/events","html_url":"https://github.com/Matesign/material-wizard/issues/2","id":87806006,"number":2,"title":"Validation step","user":{"login":"lobor","id":3316940,"avatar_url":"https://avatars.githubusercontent.com/u/3316940?v=3","gravatar_id":"","url":"https://api.github.com/users/lobor","html_url":"https://github.com/lobor","followers_url":"https://api.github.com/users/lobor/followers","following_url":"https://api.github.com/users/lobor/following{/other_user}","gists_url":"https://api.github.com/users/lobor/gists{/gist_id}","starred_url":"https://api.github.com/users/lobor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobor/subscriptions","organizations_url":"https://api.github.com/users/lobor/orgs","repos_url":"https://api.github.com/users/lobor/repos","events_url":"https://api.github.com/users/lobor/events{/privacy}","received_events_url":"https://api.github.com/users/lobor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T18:01:27Z","updated_at":"2015-06-13T19:46:20Z","closed_at":null,"body":"It's possible to add a validation in on-exit ?\r\nexemple return false for not go to the next step, and return true for go to the next step\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/Matesign/material-wizard/issues/comments/111742968","html_url":"https://github.com/Matesign/material-wizard/issues/2#issuecomment-111742968","issue_url":"https://api.github.com/repos/Matesign/material-wizard/issues/2","id":111742968,"user":{"login":"lobor","id":3316940,"avatar_url":"https://avatars.githubusercontent.com/u/3316940?v=3","gravatar_id":"","url":"https://api.github.com/users/lobor","html_url":"https://github.com/lobor","followers_url":"https://api.github.com/users/lobor/followers","following_url":"https://api.github.com/users/lobor/following{/other_user}","gists_url":"https://api.github.com/users/lobor/gists{/gist_id}","starred_url":"https://api.github.com/users/lobor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobor/subscriptions","organizations_url":"https://api.github.com/users/lobor/orgs","repos_url":"https://api.github.com/users/lobor/repos","events_url":"https://api.github.com/users/lobor/events{/privacy}","received_events_url":"https://api.github.com/users/lobor/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T19:46:20Z","updated_at":"2015-06-13T19:46:20Z","body":"a solution \r\n```javascript\r\n$scope.next = function () {\r\n    if(steps[$scope.selectedIndex].onExit()){\r\n        $scope.goto(Math.min($scope.selectedIndex + 1, steps.length - 1));\r\n    }\r\n};"}}