meteoric / autoform-ionic

Autoform templates for Ionic form components
MIT License
33 stars 22 forks source link

Hooks error: Uncaught ReferenceError: AutoForm is not defined #20

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi there,

when I try to add Hooks to autoform-ionic I get the error message: Uncaught ReferenceError: AutoForm is not defined I think this is because in your package.js file aldeeds autoform package is just added but not exported of some kind. Is this right? When I add aldeeds autoform additionally to this package it works fine, but I am wondering whether it makes sense to have both packages installed and also two different autoform versions then.

Wouldn't it be better to export the autoform object from this package so it can be used like so

AutoForm.hooks(...

Regards

pors commented 9 years ago

I have the same issue. What works for me: