To enhance the user interface, I plan on implementing a UI framework such as Bootstrap. Additionally, I will set up a controller to manage the badge counters.
(function() {
var app = angular.module("tabbadges",[]);
app.controller("badgesController", badgesController);
function badgesController($scope) {
$scope.badges = {
tab1: 4,
tab2: 6,
tab3: 2
};
}
})();
Following that, I will design the HTML structure for the view
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#">Tab one
<span class="badge badge-pill badge-primary">{{badges.tab1}}</span>
</a>
<li class="nav-item">
<a class="nav-link" href="#">Tab two
<span class="badge badge-light badge-primary">{{badges.tab2}}</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Tab three <span class="badge badge-light badge-primary">{{badges.tab3}}</span></a>
</li>
</ul>
[Check out the code on Codepen] (https://codepen.io/xaviguardia/pen/LYEybvZ)