Skip to content

Commit

Permalink
min-width setting in header
Browse files Browse the repository at this point in the history
  • Loading branch information
naopeke committed Apr 3, 2024
1 parent c7ecf00 commit b444010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ export class HeaderComponent implements OnInit {
});

//para cambiar boton de login al icon por el tamaño de pantalla, observa el tamaño : nao
//https://www.thisdot.co/blog/how-to-manage-breakpoints-using-breakpointobserver-in-angular
this.breakpointObserver.observe([Breakpoints.XSmall])
.subscribe(result => this.isSmallScreen = result.matches);

//para cambiar min-width por router : nao
//https://stackoverflow.com/questions/49722369/angular-router-events-navigationend-how-to-filter-only-the-last-event
//https://fireflysemantics.medium.com/capturing-all-angular-navigationend-events-aba3ac2da650
this.router.events.pipe(
filter(event => event instanceof NavigationEnd)
).subscribe((event: NavigationEnd) => {
Expand Down

0 comments on commit b444010

Please sign in to comment.