Hello Everyone,
Code is working, but I’m seeing color changing transition. That is, Firstly page loads default color of “bar-balanced”-Background-Color, and after that,code is working and changeing color with rootScope.HeaderColor.
Does somebody know anything about this issue?
Index.html : <ion-nav-bar class=“bar bar-header bar-balanced” align-title=“center"
ng-style="{‘background-color’: HeaderColor }”>
App.js : TukkanService.getColors().then(function(data) {
$rootScope.HeaderColor = data.HeaderColor;