From c2ffef55397e905435288f5da6043d0f8dc50dab Mon Sep 17 00:00:00 2001 From: Lee Brindley Date: Tue, 3 Oct 2017 00:11:59 +0100 Subject: [PATCH 1/2] Additional documentation on using .wizard I've elaborated on the example of the usage of the 'WizardHandler.wizard' function, specifically, giving an example of using the name parameter to identify a specific wizard --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index e932f42..2e40978 100644 --- a/README.md +++ b/README.md @@ -201,10 +201,44 @@ The main function of this service is the `wizard(name)` which will let you get t ````js // In your controller + +//No name passed, assuming there is only one wizard in the view. $scope.changeLabelAndGoNext = function() { $scope.model.label = "Hola Gonto"; WizardHandler.wizard().next(); } + +//Passing a name to the wizard function, referencing a specific wizard + + +

This is the first step

+

Here you can use whatever you want. You can use other directives, binding, etc.

+ +
+ +

Continuing

+

You have continued here!

+ +
+ +

Even more steps!!

+ +
+
+ + +

This is the first step

+

Here you can use whatever you want. You can use other directives, binding, etc.

+ +
+
+ +$scope.changeLabelAndGoNext = function() { + $scope.model.label = "Hola Gonto"; + //Pass a specific name value to the wizard function + WizardHandler.wizard("wizard-001").next(); +} + ```` In this case, we're changing a label and moving forward on the steps. From 462a046c7b9538939b1f4f72d4480b899da52fd7 Mon Sep 17 00:00:00 2001 From: Lee Brindley Date: Tue, 3 Oct 2017 00:14:10 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 2e40978..a5ae8b0 100644 --- a/README.md +++ b/README.md @@ -209,28 +209,11 @@ $scope.changeLabelAndGoNext = function() { } //Passing a name to the wizard function, referencing a specific wizard - - -

This is the first step

-

Here you can use whatever you want. You can use other directives, binding, etc.

- -
- -

Continuing

-

You have continued here!

- -
- -

Even more steps!!

- -
+ + ... - - -

This is the first step

-

Here you can use whatever you want. You can use other directives, binding, etc.

- -
+ + ... $scope.changeLabelAndGoNext = function() {