app.controller('UserCtrl', [
  '$scope',
   'Auth',
   '$http',
   'User',
   '$resource',
   function($scope, Auth, $http, User, $resource){

    Auth.currentUser().then(function (user){
      $scope.user = user;
    });

    $scope.update = function(){
      User.update({id: $scope.user.id},{api_key: $scope.api_key},function(){
      }, function(error) {
        console.log(error)
      });
      $scope.user.api_key = $scope.api_key
    };

    $scope.updateWaniKaniInfo = function(){
      alert('update?');
    };
   }
]);
@@ -432,16 +432,43 @@
 api_key%0A
+      $scope.api_key = '';%0A
     %7D;%0A%0A

fix api_key textbox