Skip to content

Commit

Permalink
fix(example): wizard annotation and one back link
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS authored and btford committed Mar 28, 2015
1 parent 5b1f644 commit e9a6e26
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/angular-1/wizard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ angular.module('myApp', [
'myApp.three',
'myApp.end'
]).
controller('AppController', ['router', AppController]).
controller('AppController', ['$router', AppController]).
factory('answers', answersFactory);

function AppController($router) {
Expand Down
5 changes: 5 additions & 0 deletions examples/angular-1/wizard/components/end/end.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<section>
<h2>Right, off you go.</h2>
<ul class="pager">
<li>{{ end.answers.name }} is your name</li>
<li>{{ end.answers.quest }} is your quest</li>
<li>{{ end.answers.favoriteColor }} is your favorite color</li>
</ul>
</section>
4 changes: 2 additions & 2 deletions examples/angular-1/wizard/components/one/one.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<section>
<h2>{{one.question}}</h2>
<h2>{{ one.question }}</h2>
<input type="text" ng-model="one.answers.name" class="form-control">

<ul class="pager">
<li><a ng-link="one">Previous</a></li>
<li><a ng-link="intro">Previous</a></li>
<li><a ng-link="two">Next</a></li>
</ul>
</section>
2 changes: 1 addition & 1 deletion examples/angular-1/wizard/components/three/three.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section>
<h2>{{three.question}}</h2>
<h2>{{ three.question }}</h2>
<input type="text" ng-model="three.answers.favoriteColor" class="form-control">
<ul class="pager">
<li><a ng-link="two">Previous</a></li>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-1/wizard/components/two/two.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section>
<h2>{{two.question}}</h2>
<h2>{{ two.question }}</h2>
<input type="text" ng-model="two.answers.quest" class="form-control">
<ul class="pager">
<li><a ng-link="one">Previous</a></li>
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-1/wizard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" href="/styles/styles.css">
-->

<base href="/examples/angular-1/hello">
<title>Wizard</title>
</head>
<body ng-app="myApp" ng-strict-di ng-controller="AppController">

Expand Down

0 comments on commit e9a6e26

Please sign in to comment.