Added logout and localStorage

This commit is contained in:
piratefinn 2017-06-05 18:47:34 +01:00
parent d8ff4064e2
commit 1bd586b3ae
5 changed files with 59 additions and 13 deletions

View file

@ -32,7 +32,7 @@
<div>
<h2>Sign up</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<button type="button" class="btn btn-primary active mt-3">Register Now!</button>
<button type="button" class="btn btn-primary active mt-3" routerLinkActive="active" [routerLink]="['/pages/register']">Register Now!</button>
</div>
</div>
</div>

View file

@ -72,7 +72,7 @@ export class RegisterComponent {
age_range: customerForm.age_range,
};
console.log(data);
/* this.api
this.api
.register(data)
.subscribe(
result => {
@ -82,7 +82,7 @@ export class RegisterComponent {
error => {
console.log( error._body );
}
);*/
);
}
onSubmitOrganisation() {
@ -105,7 +105,7 @@ export class RegisterComponent {
postcode: organisationForm.postcode,
};
console.log(data);
/* this.api
this.api
.register(data)
.subscribe(
result => {
@ -115,7 +115,7 @@ export class RegisterComponent {
error => {
console.log( error._body );
}
);*/
);
}