Skip to content
This repository was archived by the owner on Oct 14, 2019. It is now read-only.

Commit 7a2bbf0

Browse files
author
Your Name
committed
Angular and Firebase App
1 parent 63012db commit 7a2bbf0

File tree

9 files changed

+63
-1
lines changed

9 files changed

+63
-1
lines changed

src/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import { NewLessonComponent } from './new-lesson/new-lesson.component';
2525
import { LessonFormComponent } from './lesson-form/lesson-form.component';
2626
import { EditLessonComponent } from './edit-lesson/edit-lesson.component';
2727
import {LessonResolver} from "./shared/model/lesson.resolver";
28+
import { LoginComponent } from './login/login.component';
29+
import { RegisterComponent } from './register/register.component';
2830

2931
@NgModule({
3032
declarations: [
@@ -38,7 +40,9 @@ import {LessonResolver} from "./shared/model/lesson.resolver";
3840
SafeUrlPipe,
3941
NewLessonComponent,
4042
LessonFormComponent,
41-
EditLessonComponent
43+
EditLessonComponent,
44+
LoginComponent,
45+
RegisterComponent
4246
],
4347
imports: [
4448
BrowserModule,

src/app/login/login.component.css

Whitespace-only changes.

src/app/login/login.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
login works!
3+
</p>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* tslint:disable:no-unused-variable */
2+
3+
import { TestBed, async } from '@angular/core/testing';
4+
import { LoginComponent } from './login.component';
5+
6+
describe('Component: Login', () => {
7+
it('should create an instance', () => {
8+
let component = new LoginComponent();
9+
expect(component).toBeTruthy();
10+
});
11+
});

src/app/login/login.component.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-login',
5+
templateUrl: './login.component.html',
6+
styleUrls: ['./login.component.css']
7+
})
8+
export class LoginComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

src/app/register/register.component.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
register works!
3+
</p>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* tslint:disable:no-unused-variable */
2+
3+
import { TestBed, async } from '@angular/core/testing';
4+
import { RegisterComponent } from './register.component';
5+
6+
describe('Component: Register', () => {
7+
it('should create an instance', () => {
8+
let component = new RegisterComponent();
9+
expect(component).toBeTruthy();
10+
});
11+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-register',
5+
templateUrl: './register.component.html',
6+
styleUrls: ['./register.component.css']
7+
})
8+
export class RegisterComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)