Skip to content

Instantly share code, notes, and snippets.

@webpro
Last active December 16, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webpro/5398235 to your computer and use it in GitHub Desktop.
Save webpro/5398235 to your computer and use it in GitHub Desktop.
define(['wire!otherSpec'], function(otherSpec) {
return {
myModule: {
extends: { $ref: 'otherSpec.myBaseModule' },
args: {
['argOverrides']
}
}
}
});
@briancavalier
Copy link

Another possible variation:

define({
        otherSpec: {
            wire: 'otherSpec'
        },
        myModule: {
            extends: { $ref: 'otherSpec.myBaseModule' },
            args: {
                ['argOverrides']
            }
        }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment