{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/angular-wizard/issues/148","labels_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/148/comments","events_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/148/events","html_url":"https://github.com/mgonto/angular-wizard/issues/148","id":119582564,"number":148,"title":"wz-next=\"function\", function is never executed","user":{"login":"morissette","id":3629159,"avatar_url":"https://avatars.githubusercontent.com/u/3629159?v=3","gravatar_id":"","url":"https://api.github.com/users/morissette","html_url":"https://github.com/morissette","followers_url":"https://api.github.com/users/morissette/followers","following_url":"https://api.github.com/users/morissette/following{/other_user}","gists_url":"https://api.github.com/users/morissette/gists{/gist_id}","starred_url":"https://api.github.com/users/morissette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morissette/subscriptions","organizations_url":"https://api.github.com/users/morissette/orgs","repos_url":"https://api.github.com/users/morissette/repos","events_url":"https://api.github.com/users/morissette/events{/privacy}","received_events_url":"https://api.github.com/users/morissette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-30T21:15:25Z","updated_at":"2015-12-24T06:30:51Z","closed_at":"2015-12-24T06:30:51Z","body":"Description:\r\nI am showing no execution of any function passed to wz-next, either in $scope.function or traditional function func() declarations. Both are simple functions that just log to the console yet nothing is logged. \r\n\r\nAngular: 1.4.6\r\n\r\nJavascript, controller and module:\r\n```javascript\r\n(function() {\r\n    var app = angular.module('mydhWizard', ['mgo-angular-wizard']);\r\n\r\n    app.controller('WizardCtrl', function($scope, WizardHandler) {\r\n        $scope.finished = function() {\r\n            alert(\"Wizard finished :)\");\r\n        };\r\n\r\n        $scope.logStep = function() {\r\n            console.log(\"Step continued\");\r\n        };\r\n\r\n        $scope.goBack = function() {\r\n            WizardHandler.wizard().goTo(0);\r\n        };\r\n\r\n        $scope.setQuestionaire = function(num) {\r\n            console.log('clicked');\r\n        };\r\n    });\r\n\r\n\r\n})();\r\n```\r\n\r\nView and directive:\r\n```html\r\n<!-- load directive with wz-next function -->\r\n            <wz-step title=\"Select Use Case\">\r\n                <h1 class=\"text-center\">Select a Use Case</h1>\r\n                <hr>\r\n                <wizard-use-cases></wizard-use-cases>\r\n            </wz-step>\r\n\r\n\r\n<!-- the following is in the wizardUseCases directive template -->\r\n<button type=\"button\" class=\"btn btn-block btn-success\" wz-next=\"setQuestionaire(1)\">\r\n  Get Started <i class=\"fa fa-chevron-right\"></i>\r\n</button>\r\n```"},"comment":{"url":"https://api.github.com/repos/mgonto/angular-wizard/issues/comments/167052707","html_url":"https://github.com/mgonto/angular-wizard/issues/148#issuecomment-167052707","issue_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/148","id":167052707,"user":{"login":"jacobscarter","id":3640740,"avatar_url":"https://avatars.githubusercontent.com/u/3640740?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobscarter","html_url":"https://github.com/jacobscarter","followers_url":"https://api.github.com/users/jacobscarter/followers","following_url":"https://api.github.com/users/jacobscarter/following{/other_user}","gists_url":"https://api.github.com/users/jacobscarter/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobscarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobscarter/subscriptions","organizations_url":"https://api.github.com/users/jacobscarter/orgs","repos_url":"https://api.github.com/users/jacobscarter/repos","events_url":"https://api.github.com/users/jacobscarter/events{/privacy}","received_events_url":"https://api.github.com/users/jacobscarter/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T06:30:51Z","updated_at":"2015-12-24T06:30:51Z","body":"So that is the way it's done, wzNext or any of the wz buttons do not take functions as arguments, they do not take arguments at all.  If you want custom action on a button hook it up to a ngClick (which it looks like you have) and finish it with the WizardHandler Service (as you have done)."}}