This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import {ConsoleService} from "../console.service";
|
||||
import {UserRegistration} from "../../api/models/userregistration.model";
|
||||
import {BehaviorSubject} from "rxjs";
|
||||
import {User} from "../../api/models/user.model";
|
||||
import { Subject } from 'rxjs/Subject';
|
||||
import {ApiClientService} from "../../api/index";
|
||||
|
||||
@Component({
|
||||
@@ -16,7 +15,7 @@ export class RegisterComponent implements OnInit {
|
||||
public loading: boolean = false;
|
||||
public isRegistered: boolean = false;
|
||||
|
||||
error: BehaviorSubject<string> = new BehaviorSubject<string>(null);
|
||||
error: Subject<string> = new Subject<string>();
|
||||
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -32,7 +31,7 @@ export class RegisterComponent implements OnInit {
|
||||
return (!this.loading);
|
||||
}
|
||||
|
||||
getError(): BehaviorSubject<string> {
|
||||
getError(): Subject<string> {
|
||||
return this.error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user