A simple file sharing site with an easy to use API and online panel.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

15 satır
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. });