Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vuenit.build #68

Closed
jackmellis opened this issue Jun 30, 2017 · 0 comments
Closed

vuenit.build #68

jackmellis opened this issue Jun 30, 2017 · 0 comments
Milestone

Comments

@jackmellis
Copy link
Owner

jackmellis commented Jun 30, 2017

Builds a component using configuration options and then returns a function that actually instantiates and mounts it. The function could potentially accept additional configuration options to merge with it...

import {build} from 'vuenit';
const mount = build(c, {
  inject : { $router },
  props : {
    id : 1,
    someAction : 'foo'
  }
});

var vm1 = mount();
var vm2 = mount({
  props : {
    id : 2
  }
});

const mount2 = mount.build({
  // merge more options with the originals
});

The question is: is the built props object replaced with the new one (so someAction is lost), or does it merge the two together?

@jackmellis jackmellis added this to the 1.0.0 milestone Jun 30, 2017
jackmellis pushed a commit that referenced this issue Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant