Made sure need-map updates once the need-uri is passed to it.
@@ -10,6 +10,7 @@ import { actionCreators } from '../actions/actions';
import L from '../leaflet-bundleable';
import {
initLeaflet,
+ connect2Redux,
} from '../won-utils';
import {
@@ -50,8 +51,7 @@ function genComponentConf() {
location: location,
}
};
- const disconnect = this.$ngRedux.connect(selectFromState, actionCreators)(this);
- this.$scope.$on('$destroy', disconnect);
+ connect2Redux(selectFromState, actionCreators, ['self.uri'], this);
}
mapInView(inviewInfo) {
