+14
@@ -0,0 +1,14 @@
|
||||
@Component({
|
||||
selector: 'app-nav-bar',
|
||||
template: `
|
||||
<nav [style]='navStyle'>
|
||||
<a [style.text-decoration]="activeLinkStyle">Home Page</a>
|
||||
<a [style.text-decoration]="linkStyle">Login</a>
|
||||
</nav>`
|
||||
})
|
||||
export class NavBarComponent {
|
||||
navStyle = 'font-size: 1.2rem; color: cornflowerblue;';
|
||||
linkStyle = 'underline';
|
||||
activeLinkStyle = 'overline';
|
||||
/* . . . */
|
||||
}
|
||||
Reference in New Issue
Block a user