Skip to content

Commit 5aed118

Browse files
author
jacobscarter
committed
added step description and service methods for retrieving description and step data
1 parent 3ffdbbc commit 5aed118

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/step.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ angular.module('mgo-angular-wizard').directive('wzStep', function() {
88
title: '@',
99
canenter : '=',
1010
canexit : '=',
11-
disabled: '@?wzDisabled'
11+
disabled: '@?wzDisabled',
12+
description: '@'
1213
},
1314
require: '^wizard',
1415
templateUrl: function(element, attributes) {

src/wizard.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ angular.module('mgo-angular-wizard').directive('wizard', function() {
197197

198198
//ALL METHODS ATTACHED TO this ARE ACCESSIBLE VIA WizardHandler.wizard().methodName()
199199

200+
this.currentStepDescription = function(){
201+
return $scope.selectedStep.description;
202+
};
203+
204+
this.currentStep = function(){
205+
return $scope.selectedStep;
206+
};
207+
200208
this.currentStepTitle = function(){
201209
return $scope.selectedStep.title;
202210
};

0 commit comments

Comments
 (0)