How to use the @uirouter/core.extend 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 ui-router / react / src / components / UISref.tsx View on Github external
getOptions = () => {
    let parent = this.props.parentUIView;
    let parentContext = (parent && parent.context) || this.props.router.stateRegistry.root();
    let defOpts = { relative: parentContext, inherit: true };
    return extend(defOpts, this.props.options || {});
  };