Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Fixed angular version issues #279

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Certificate Generator aims to automatically generate certificates based on the d
## Development Stack
* HTML
* CSS
* Angular 6 for Front-End
* Angular 7 for Front-End

## Work Flow for Developers
* _**For Certificate Issuers:**_
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
<div class="section">
<div class="section-title">Development Stack</div>
Angular 6 for Front-End<br>
Angular {{angularVersion}} for Front-End<br>
OHassini marked this conversation as resolved.
Show resolved Hide resolved
Django for Back-End
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { AuthenticationService } from '../../services/authentication.service';
import { Router } from '@angular/router';
import { User } from '../../services/user.service';
import {VERSION} from '@angular/core';
OHassini marked this conversation as resolved.
Show resolved Hide resolved

@Component({
selector: 'app-login',
Expand All @@ -11,6 +12,7 @@ import { User } from '../../services/user.service';
})
export class LoginComponent implements OnInit {

angularVersion = VERSION.major;
OHassini marked this conversation as resolved.
Show resolved Hide resolved
signinForm: FormGroup;
submitted = false;
user: User;
Expand Down
6 changes: 3 additions & 3 deletions src/app/core/signup/signup.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
<div class="section section-content">
<div class="section-title">Development Stack</div>
Angular 6 for Front-End<br>
Angular {{angularVersion}} for Front-End<br>
Django for Back-End
</div>
</div>
Expand All @@ -26,8 +26,8 @@ <h1 class="signup_t text-center">Certificate Generator</h1>
{{ error }}
</div>
<div class ="form-group">
<label for="name" class="input">Name</label>
<input type="text" class="form-control" id="name" formControlName="name" [ngClass]="{ 'is-invalid': submitted && f.name.errors }">
<label for="name" class="input">Name</label>
<input type="text" class="form-control" id="name" formControlName="name" [ngClass]="{ 'is-invalid': submitted && f.name.errors }">
<div *ngIf="submitted && f.name.errors" class="invalid-feedback">
<div *ngIf="f.name.errors.required" class="alert alert-danger">Name is required</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/signup/signup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { AuthenticationService } from '../../services/authentication.service';
import { Router } from '@angular/router';
import { UserSignup } from '../../services/user.service';
import {VERSION} from '@angular/core';

@Component({
selector: 'app-signup',
Expand All @@ -11,6 +12,7 @@ import { UserSignup } from '../../services/user.service';
})
export class SignupComponent implements OnInit {

angularVersion = VERSION.major;
signupForm: FormGroup;
submitted = false;
userSignup: UserSignup;
Expand Down