A simple file sharing site with an easy to use API and online panel.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
580B

  1. var angular = require('angular');
  2. angular.module('RegisterComp', ['AuthSvc']).component('registerComponent', {
  3. templateUrl: '/views/shrimpa/register-form.html',
  4. controller: ['$scope', '$timeout', 'AuthService', function($scope, $timeout, AuthService) {
  5. $scope.register = function() {
  6. AuthService.register($scope.username, $scope.password, $scope.invite).catch(function() {
  7. $scope.error = true;
  8. $timeout(function() {
  9. $scope.error = false
  10. }, 820);
  11. });
  12. };
  13. }]
  14. });