export default class State {

    constructor($rootScope) {
        this.$rootScope = $rootScope;
        this.state = [];
    }

    setData(data) {
        console.log('state set data', data)

        this.state = data;
        this.$rootScope.$apply();
    }

    getData() {
        //console.log('state get data', state)
        return this.state;
    }
}
