nakedobjects.spa
Version:
Single Page Application client for a Naked Objects application.
12 lines • 496 B
JavaScript
import map from 'lodash/map';
var MenusViewModel = (function () {
function MenusViewModel(viewModelFactory, menusRep, onPaneId) {
var _this = this;
this.viewModelFactory = viewModelFactory;
this.menusRep = menusRep;
this.items = map(this.menusRep.value(), function (link) { return _this.viewModelFactory.linkViewModel(link, onPaneId); });
}
return MenusViewModel;
}());
export { MenusViewModel };
//# sourceMappingURL=menus-view-model.js.map