Get the current state
import { CounterStore } from 'counter-store';
function YourController($scope: ng.IScope, counterStore: CounterStore) {
const counterState = counterStore.copy();
$scope.count = counterState.count;
}
angular
.module('App', [])
.controller('YourController', YourController);Last updated
Was this helpful?