Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ You can use the following functions on `StepsService.steps()`:
- **finish()**: Triggers the `on-finish` callback.
- **goTo(** *number* | *name* **)**: Go to a specific step. Argument can be
either a number (zero-based index) or the **name** of a step.
- **selectedIndex()**: Get current step index.

You can get the number of steps from `StepsService.steps().steps.length`.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-steps",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/angular-steps.js",
"description": "Split your UI into (wizard-like) steps in AngularJS.",
"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion dist/angular-steps.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular-steps - Split your UI into (wizard-like) steps in AngularJS.
* @version v1.0.0
* @version v1.0.1
* @link https://github.com/omichelsen/angular-steps
* @author Ole Michelsen <ole@michelsen.dk>
* @license MIT
Expand Down Expand Up @@ -135,6 +135,10 @@
this.cancel = function () {
$scope.goTo($scope.steps[0]);
};

this.selectedIndex = function () {
return $scope.steps.indexOf($scope.selectedStep);
};
}]
};
});
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-steps.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-steps",
"version": "1.0.0",
"version": "1.0.1",
"description": "Split your UI into (wizard-like) steps in AngularJS.",
"main": "dist/angular-steps.js",
"dependencies": {},
Expand Down
4 changes: 4 additions & 0 deletions src/angular-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
this.cancel = function () {
$scope.goTo($scope.steps[0]);
};

this.selectedIndex = function () {
return $scope.steps.indexOf($scope.selectedStep);
};
}
};
});
Expand Down