Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

$rootScope not working?

$
0
0

@IonBruno wrote:

.controller('AppCtrl', function($scope, $rootScope, $ionicLoading) {
  $rootScope.colorg = 'blue';
})

.controller('CategoriasCtrl', function($scope, Categorias, $ionicLoading, $rootScope) {
  console.log($rootScope.colorg);
})

Because the console.log returns undefined me?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>