Imagine my navbar is on navbar controller and I'm doing something value manipulation in another controller, how I'm able to update the value of my navbar?
Here's a small example I created to express my problem
<div ng-app="app"> <div ng-controller="ctrl"> {{number}} <br><button ng-click="increment()">Increment</button> </div> <br> <br> <div ng-controller="ctrl2"> {{number || 0}} </div> </div> angular.module("app", []) .controller("ctrl", ["$scope", function($scope){ $scope.number = 1; $scope.increment = function(){ $scope.number++; } }]) .controller("ctrl2", ["$scope", function($scope){ }]); I want to update the {{number}} of ctrl2 controller.