Skip to content

Commit

Permalink
removing jquery and upgrading angular
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sevilleja committed Apr 17, 2014
1 parent 803842a commit 571e1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function mainController($scope, $http) {
$scope.createTodo = function() {
$http.post('/api/todos', $scope.formData)
.success(function(data) {
$('input').val('');
$scope.formData.text = '';
$scope.todos = data;
})
.error(function(data) {
Expand Down
3 changes: 1 addition & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
</style>

<!-- SPELLS -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script><!-- load jquery -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script><!-- load angular -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script><!-- load angular -->
<script src="core.js"></script>

</head>
Expand Down

0 comments on commit 571e1cf

Please sign in to comment.