Added tooltips to the menu buttons.
This commit is contained in:
parent
5ed471c1d2
commit
63fcb42b8d
@ -14,9 +14,9 @@
|
||||
<!-- <button type="button" class="btn btn-secondary">Left</button> -->
|
||||
<!-- <button type="button" class="btn btn-secondary">Middle</button> -->
|
||||
<!-- <button type="button" class="btn btn-secondary">Right</button> -->
|
||||
<a routerLink="/home"><i class="text-secondary fa fa-home fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="/posts"><i class="text-secondary fa fa-sticky-note fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="/cv"><i class="text-secondary fa fa-id-badge fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="/home"><i data-toggle="tooltip" title="Home" class="text-secondary fa fa-home fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="/posts"><i data-toggle="tooltip" title="Posts" class="text-secondary fa fa-sticky-note fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
<a routerLink="/cv"><i data-toggle="tooltip" title="Curriculum Vitae" class="text-secondary fa fa-id-badge fa-fw fa-2x" aria-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!--row-->
|
||||
|
||||
@ -1,10 +1,22 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, OnInit, AfterViewChecked } from '@angular/core';
|
||||
declare var $: any;
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.css']
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'app';
|
||||
export class AppComponent implements OnInit, AfterViewChecked {
|
||||
|
||||
title = 'Joachim Homepage';
|
||||
|
||||
ngAfterViewChecked(): void {
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user