How to use the @nakedobjects/services.ViewType.Home function in @nakedobjects/services

To help you get started, we’ve selected a few @nakedobjects/services examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / cicero / src / cicero / cicero.component.ts View on Github external
private render() {
        switch (this.lastPaneRouteData.location) {
            case ViewType.Home:
                return this.ciceroRendererService.renderHome(this.lastPaneRouteData);
            case ViewType.Object:
                return this.ciceroRendererService.renderObject(this.lastPaneRouteData);
            case ViewType.List:
                return this.ciceroRendererService.renderList(this.lastPaneRouteData);
            default:
                return this.ciceroRendererService.renderError('unknown render error');
        }
    }