Skip to content

Derby plugin for easily adding subcomponents without access too app

License

Notifications You must be signed in to change notification settings

BBWeb/derby-subcomponents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

derby-subcomponents

Derby plugin for easily adding subcomponents without access to app

How to use

Adds the possibility to add a subcomponents on your Component prototype - i.e. without access to app. E.g.

// When this component is loaded through app.component('./mycomponent/index.js'), the subcomponent will automatically be loaded namespaced to the maincomponents name (and possible namespace), i.e. you will have two components loaded (from below component):
// maincomponent
// maincomponent:subcomponent
function MyComponent () {}

MyComponent.prototype.name = 'maincomponent'
MyComponent.prototype.components = [require('subcomponent')]

About

Derby plugin for easily adding subcomponents without access too app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published