component register
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { RegisterComponent} from './register/register.component';
|
||||
|
||||
const routes: Routes = [
|
||||
// No logged pages
|
||||
{ path: '', component: HomeComponent, },
|
||||
{ path: 'register', component: RegisterComponent},
|
||||
// {
|
||||
// path: 'login',
|
||||
// component: LoginComponent,
|
||||
|
@ -10,6 +10,8 @@ import { AppRoutingModule } from '@app/app-routing.module';
|
||||
import { AngularFireModule } from '@angular/fire';
|
||||
import { AngularFireDatabaseModule } from '@angular/fire/database';
|
||||
import { AppMaterialModule } from '@app/app-material.module';
|
||||
import { AppRoutingModule } from '@app/app-routing.module';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
|
||||
import { LogService, SEOService } from '@app/core/services';
|
||||
import { GlobalErrorHandler } from '@app/core/global-error-handler/global-error-handler.service';
|
||||
@ -21,6 +23,7 @@ import { environment } from '@env/environment';
|
||||
AppComponent,
|
||||
HomeComponent,
|
||||
HeaderComponent,
|
||||
RegisterComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
0
src/app/register/register.component.css
Normal file
0
src/app/register/register.component.css
Normal file
3
src/app/register/register.component.html
Normal file
3
src/app/register/register.component.html
Normal file
@ -0,0 +1,3 @@
|
||||
<p>
|
||||
register works!
|
||||
</p>
|
25
src/app/register/register.component.spec.ts
Normal file
25
src/app/register/register.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { RegisterComponent } from './register.component';
|
||||
|
||||
describe('RegisterComponent', () => {
|
||||
let component: RegisterComponent;
|
||||
let fixture: ComponentFixture<RegisterComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ RegisterComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(RegisterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
15
src/app/register/register.component.ts
Normal file
15
src/app/register/register.component.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-register',
|
||||
templateUrl: './register.component.html',
|
||||
styleUrls: ['./register.component.css']
|
||||
})
|
||||
export class RegisterComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user