Skip to content

Commit 8c37c12

Browse files
authored
Add missing functionality to Add button
Current functionality, user had to hit enter to call the form submit and the plus button did nothing. Adds ng-click to element to allow for user to add items with the add button as well.
1 parent 123144a commit 8c37c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/views/partials/checkboxes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ <h4 flex="82">{{vm.remaining()}} of {{vm.todos.length}} remaining</h4>
1515
<label>Write some todo task here...</label>
1616
<input ng-model="vm.todoText" name="taskText" required>
1717
</md-input-container>
18-
<md-button class="md-fab md-wayrn md-mini">
18+
<md-button class="md-fab md-wayrn md-mini" ng-click="vm.addTodo($event)">
1919
<i class="material-icons">add</i>
2020
</md-button>
2121
</div>
2222
<md-button class="md-primary" ng-click="vm.archive($event)">
2323
Remove completed
2424
</md-button>
2525
</form>
26-
</md-content>
26+
</md-content>

0 commit comments

Comments
 (0)