mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
refactor: change projection and anchor navigation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/* eslint-disable @angular-eslint/component-selector */
|
||||
import { Component, Input } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'nav-button',
|
||||
standalone: true,
|
||||
template: `
|
||||
<a [href]="href">
|
||||
<ng-content></ng-content>
|
||||
</a>
|
||||
`,
|
||||
host: {
|
||||
class: 'block w-fit border border-red-500 rounded-md p-4 m-2',
|
||||
},
|
||||
})
|
||||
export class NavButtonComponent {
|
||||
@Input() href = '';
|
||||
}
|
||||
Reference in New Issue
Block a user