1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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);
}
};
});
|