<header class="layer-bottom">
<div class="container">
<div class="row">
<div class="col-md-2"
style="padding: 0;">
<img src="resources/logo.png"
style="width: 60%;">
</div>
<div class="col-md-8 navBar">
<span ng-click="ads();" style="color: #fff;">
Ad on bill
</span>
<span class="divider">|</span>
<span ng-click="visibilityMessages();" style="color: #fff;">
Messages
</span>
<span class="divider">|</span>
<span ng-click="visibility();" style="color: #fff;">
Visibility
</span>
<span class="divider">|</span>
<span ng-click="pricePromotions()" style="color: #fff;">
Price Promotions
</span>
</div>
<div class="col-md-2" style="margin-top: 1.5%">
<!--<i class="fa fa-2x fa-bars" aria-hidden="true">-->
<span ng-bind="userObj.companyName"></span>
<button type="button" class="btn btn-default" ng-click="logout();">
<span class="glyphicon glyphicon-log-out"></span> Log out
</button>
</div>
</div>
</div>
</header>
Ich habe Zweifel ein text.Initially in Hervorhebung alle Überschriften haben die Farbe es die style.When angegeben i AdOnBill klicken, Hautfarbe oder Schriftgröße muss sein changed.How kann ich tun Das?Hervorhebungen Text in AngularJS
-Controller
scope.ads = function() {
location.path("/dashboard/messages");
};
scope.visibilityMessages = function() {
location.path("/dashboard/visibility_messages");
};
Verwendung ng-Klasse seine gute Möglichkeit, CSS anzuwenden. https://docs.angularjs.org/api/ng/directive/ngClass –