todo_rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22af5701c4ddb1e50d37503be7cc574975fc5444
4
- data.tar.gz: 81215854518983716bffe126d2daadc39154f8fc
3
+ metadata.gz: 795120a0f3b0de4a5857b384772eb83acfa88802
4
+ data.tar.gz: b25a156507ff018d17f77cb58e886e8e9bf90c9c
5
5
  SHA512:
6
- metadata.gz: 272a8d04b62fe9594cabf16e491d75274437c70d8e10a467a9c32cf6f4260f766cb23bf445e15f7766bd5dbb03ba66c7a44000ef5cddfa3d84487cfdeda758c2
7
- data.tar.gz: fac07d53cc6285a3864ece6b434318bb212edf6253ec4bad53094a3c296989a123f06c263967f95c12334a9d183b6113040301a262c1b1fc39276091ce85beea
6
+ metadata.gz: 5216e13c4975decfa53e9289b2d83d0acf077d0d008ded9825183112f9a6c796596778b265f3093fc5bbe1cfb0687c7f9c44e9d985cea9e76860f247a6b7945f
7
+ data.tar.gz: f86a12d3b54ae7423ae1328620d18661398eb70a8fc19debd41a880386d6decde386fe62b4994b6579fd7bd98999d13d57aa8b61853ac1b1a6b45ab77361a7e5
@@ -8,6 +8,9 @@ angular.module('todoRails.controllers').controller 'todoCtrl', [
8
8
  ($scope, Restangular) ->
9
9
  todos = Restangular.all('tasks')
10
10
 
11
+ $scope.saveTodo = (todo) ->
12
+ todo.save()
13
+
11
14
  $scope.reload = ->
12
15
  $scope.todos = todos.getList().$object
13
16
 
@@ -12,5 +12,4 @@
12
12
  .listHeader{ flex: '', layout: '', 'layout-align' => 'end end' }= @config['remaining_label']
13
13
  %ul
14
14
  %li{ 'ng-repeat' => 'todo in todos' }
15
- %md-checkbox{ 'aria-label' => 'Todo Checkbox',
16
- 'ng-init' => 'todo.completed=false', 'ng-model' => 'todo.completed' } {{todo.title}}
15
+ %md-checkbox{ 'aria-label' => 'Todo Checkbox', 'ng-model' => 'todo.completed', 'ng-change' => 'saveTodo(todo)' } {{todo.title}}
@@ -1,3 +1,3 @@
1
1
  module TodoRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - goooseman