angular.module('mgo-angular-wizard').directive('wzStep', function() { return { restrict: 'EA', replace: true, transclude: true, scope: { wzTitle: '@', canenter : '=', canexit : '=', disabled: '@?wzDisabled', description: '@', wzData: '=' }, require: '^wizard', templateUrl: function(element, attributes) { return attributes.template || "step.html"; }, link: function($scope, $element, $attrs, wizard) { $scope.title = $scope.wzTitle; wizard.addStep($scope); } }; });