Skip to content
Snippets Groups Projects
Commit d6eb0023 authored by hugcubi's avatar hugcubi
Browse files

Añadido html y css de la navegación, faltan las rutas

parent 0fd8289c
No related branches found
No related tags found
Loading
nav {
background-color: #333;
color: white;
padding: 1em;
}
ul {
list-style: none;
padding: 0;
display: flex;
}
li {
margin-right: 20px;
}
a {
color: white;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.active {
font-weight: bold;
}
\ No newline at end of file
<nav>
<ul>
<li><a routerLink="/hotels" routerLinkActive="Hoteles">Home</a></li>
<li><a routerLink="/about" routerLinkActive="active">About</a></li>
</ul>
</nav>
\ No newline at end of file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NavigationComponent } from './navigation.component';
describe('NavigationComponent', () => {
let component: NavigationComponent;
let fixture: ComponentFixture<NavigationComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NavigationComponent]
})
.compileComponents();
fixture = TestBed.createComponent(NavigationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-navigation',
standalone: true,
imports: [],
templateUrl: './navigation.component.html',
styleUrl: './navigation.component.css'
})
export class NavigationComponent {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment