Separate ngForm into its own module
when using angular at mobile, we hope its core is simple, and the filesize is small (now is 98k, not small enough)
I think it's good to separate ngForm into its own module , most of the pages have not need to ask user to enter something.
@atian25 Remember that the filesize will be far less when minified and gzipped (< 36k, as per angular docs) so I would suggest confirming if it is really an issue when being served in your production environment.
http://ajax.googleapis.com/ajax/libs/angularjs/1.2.11/angular.min.js << minified+gzipped, this is under 40k. On packaged apps this stuff should be available from the get go anyways, though.
Anyways, the forms component could possibly be split out for 2.0, but right now it's a pretty core component, I don't think you'll see this change in 1.x
thanks for reply.
our project is a hybrid app, and one goal is limit the app size less than 1M. now the primary html+css+image is pack as a zip and build into the app.
my opinion is ngForm is not using at every mobile page, so why not just separate it like ngRoute
If you'd like to patch the library to remove the input/select/form directives, it wouldn't be very difficult (you'd have to change like 6-8 lines of text in the whole project).
But I don't think we can do this (IE ship an official release with the form component factored out) for the 1.x cycle, forms are a pretty core component. I'm going to mark this as a 2.0 suggestion and close this issue, though, because this just doesn't strike me as actionable at this time.