-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.html
33 lines (32 loc) · 1.07 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Example</title>
<link rel="stylesheet" href="stepper.css">
</head>
<body ng-app="ExampleApp" ng-controller="Ctrl">
<div class="container">
<feb-stepper steps="['{{stepNo1}}', 'Step 2', 'Step 3', 'Step 4', 'Step 5']" control="stepperControl" start-step="1"></feb-stepper>
</div>
<div>
<button ng-click="stepperControl.prevStep()">Prev step</button>
<button ng-click="stepperControl.nextStep()">Next step</button>
</div>
<div>
<br/>
Change text for the first step :
<input ng-model="stepNo1"/>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="stepper.js"></script>
<script>
angular.module('ExampleApp', ['feb.stepper'])
.controller('Ctrl', function ($scope) {
$scope.stepperControl = {};
$scope.stepNo1 = "test";
});
</script>
</body>
</html>