Skip to content

Commit a4c3cad

Browse files
committed
merge
2 parents 862f457 + beed9c5 commit a4c3cad

6 files changed

+52
-0
lines changed

src/app/app.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<li class="cd-log_reg home" [routerLinkActive]="['active']"><a class="cd-signin" [routerLink]="['/profile/home']">Profile</a></li>
2626
<li class="cd-log_reg home" [routerLinkActive]="['active']"><a class="cd-signin" [routerLink]="['/logout']" (click)="logout()">Logout</a></li>
2727
<li class="cd-log_reg" [routerLinkActive]="['active']"><a class="cd-signup" [routerLink]="['/forum/1']">Forum</a></li>
28+
<li class="cd-log_reg" [routerLinkActive]="['active']"><a class="cd-signup" [routerLink]="['/forum/create']">Create Post</a></li>
2829
</ul>
2930
</div>
3031
</div>

src/app/app.module.ts

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { CategoryModule } from './category/category.module';
2525
import { AllPostsByUserComponent } from './users/all-posts-by-user/all-posts-by-user.component';
2626
import { BiggerFontDirective } from './directives/bigger-font-size.directive';
2727
import { FooterComponent } from './footer/footer.component';
28+
import { CreateCategoryComponent } from './create-category/create-category.component';
2829

2930
@NgModule({
3031
bootstrap: [AppComponent],
@@ -39,7 +40,11 @@ import { FooterComponent } from './footer/footer.component';
3940
ProfileOutboxComponent,
4041
AllPostsByUserComponent,
4142
BiggerFontDirective,
43+
<<<<<<< HEAD
4244
FooterComponent
45+
=======
46+
CreateCategoryComponent
47+
>>>>>>> beed9c51347c179d07fbe5a1034c1a2b3510cb3e
4348
],
4449
imports: [
4550
BrowserModule,

src/app/create-category/create-category.component.css

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
create-category works!
3+
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* tslint:disable:no-unused-variable */
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
import { By } from '@angular/platform-browser';
4+
import { DebugElement } from '@angular/core';
5+
6+
import { CreateCategoryComponent } from './create-category.component';
7+
8+
describe('CreateCategoryComponent', () => {
9+
let component: CreateCategoryComponent;
10+
let fixture: ComponentFixture<CreateCategoryComponent>;
11+
12+
beforeEach(async(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [ CreateCategoryComponent ]
15+
})
16+
.compileComponents();
17+
}));
18+
19+
beforeEach(() => {
20+
fixture = TestBed.createComponent(CreateCategoryComponent);
21+
component = fixture.componentInstance;
22+
fixture.detectChanges();
23+
});
24+
25+
it('should create', () => {
26+
expect(component).toBeTruthy();
27+
});
28+
});
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-create-category',
5+
templateUrl: './create-category.component.html',
6+
styleUrls: ['./create-category.component.css']
7+
})
8+
export class CreateCategoryComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)