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. });