Skip to content

Commit

Permalink
se creo la ruta para ver los mensajes del admin
Browse files Browse the repository at this point in the history
  • Loading branch information
matias1305 committed Dec 8, 2018
1 parent c07d5a0 commit 19c36a2
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
Empty file.
3 changes: 3 additions & 0 deletions src/app/pages/message-admin/message-admin.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
message-admin works!
</p>
25 changes: 25 additions & 0 deletions src/app/pages/message-admin/message-admin.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { MessageAdminComponent } from './message-admin.component';

describe('MessageAdminComponent', () => {
let component: MessageAdminComponent;
let fixture: ComponentFixture<MessageAdminComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MessageAdminComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(MessageAdminComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/pages/message-admin/message-admin.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-message-admin',
templateUrl: './message-admin.component.html',
styleUrls: ['./message-admin.component.css']
})
export class MessageAdminComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
4 changes: 3 additions & 1 deletion src/app/pages/pages.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { SearchComponent } from './search/search.component';
// COMPONENTS
import { CardBookComponent } from '../components/card-book/card-book.component';
import { OneBookComponent } from '../components/one-book/one-book.component';
import { MessageAdminComponent } from './message-admin/message-admin.component';

@NgModule({
declarations: [
Expand All @@ -47,7 +48,8 @@ import { OneBookComponent } from '../components/one-book/one-book.component';
PagesComponent,
CardBookComponent,
SearchComponent,
ChatsComponent
ChatsComponent,
MessageAdminComponent
],
imports: [
CommonModule,
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/pages.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ProfileComponent } from './profile/profile.component';
import { HomeComponent } from './home/home.component';
import { LibraryComponent } from './library/library.component';
import { SearchComponent } from './search/search.component';
import { MessageAdminComponent } from './message-admin/message-admin.component';

// GUARD
import { LoginGuardGuard } from '../services/guards/login-guard.guard';
Expand All @@ -26,6 +27,7 @@ const PAGES_ROUTE: Routes = [
{ path: 'search/:input', component: SearchComponent },
{ path: 'messages', component: ChatsComponent },
{ path: 'messages/:key', component: ChatsComponent },
{ path: 'message-admin', component: MessageAdminComponent },
{ path: '', pathMatch: 'full', redirectTo: 'home' }
]
}
Expand Down

0 comments on commit 19c36a2

Please sign in to comment.