Get the current state
angular
.module('App', [])
.controller('ControllerA', function ControllerA($scope, CounterStore) {
const counterState = CounterStore.copy();
$scope.count = counterState.count;
});angular
.module('App', [])
.controller('ControllerA', function ControllerA($scope, CounterStore) {
$scope.count = CounterStore.copy('count');
});Last updated
Was this helpful?