1. Endy Muhardin
  2. belajar-restful

Commits

Endy Muhardin  committed 0515dc5

harusnya compare username, bukan id

  • Participants
  • Parent commits b6acbf2
  • Branches master

Comments (0)

Files changed (1)

File belajar-restful-web/src/main/webapp/js/aplikasi-controller.js

View file
             }
             for(var i = 0; i < $scope.users.length; i++){
                 var u = $scope.users[i];
-                if(u.id === value){
+                if(u.username === value){
                     return false;
                 }
             }