How to use the @uirouter/core.ViewService function in @uirouter/core

To help you get started, we’ve selected a few @uirouter/core 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 ergo / polymer-ui-router / uirouter-mixin.js View on Github external
names.forEach(name => {
        let config = viewsObject[name];
        name = name || "$default"; // Account for views: { "": { component... } }
        if (Object.keys(config).length == 0) return;

        config.$type = "polymer";
        config.$context = state;
        config.$name = name;

        let normalized = routerCore.ViewService.normalizeUIViewTarget(config.$context, config.$name);
        config.$uiViewName = normalized.uiViewName;
        config.$uiViewContextAnchor = normalized.uiViewContextAnchor;

        views[name] = config;
    });
    return views;