angular2-json-schema-form icon indicating copy to clipboard operation
angular2-json-schema-form copied to clipboard

Possible to run angular2-json-schema-form without the material framework?

Open jroboyd opened this issue 7 years ago • 5 comments

I don't require such a large library and would rather leave this baggage behind, but I can't get anything working without installing the material framework, and all its other dependencies.

At the moment I am sticking with version:

  • 1.0.0-alpha.25 for angular2-json-schema-form
  • 2.0.0-beta.1 for material

Setting the framework to no-framework so the production build doesn't pull in the material library. Which works for this version, but I can't build it without the material dependency for one, and later versions have a large amount of issues with material that it would be beneficial in my opinion to make an option dependency.

Bringing in the latest versions doesn't seem to work but that's another issue with material. Just would rather get rid of material.

jroboyd avatar Jul 18 '17 08:07 jroboyd

No, this is not possible—yet.

I know it's annoying, but unfortunately a current limitation of this library is that it requires the @angular/material and @angular/cdk packages be installed, even if you only want to display your form using the Bootstrap framework.

The bugs with older versions of Material Design have been fixed, so other than the unnecessary download bloat if you're using Bootstrap 3 (or no-framework), this shouldn't cause any errors.

A future version of this library will solve this problem by splitting the core library and frameworks into separate modules, so you'll be able to download only what you need.

dschnelldavis avatar Oct 24 '17 19:10 dschnelldavis

Hi, I am unable to switch to Bootstrap. The readme is not clear enough for me. Seems to be something trivial, but what I actually managed was to make the material framework funtional :|

Can you help please? EDIT: sry, just had to add the ' ' around bootstrap [framework]="'bootstrap-3'"

All done now

VirusDEAD avatar Nov 14 '17 15:11 VirusDEAD

@dschnelldavis

A future version of this library will solve this problem by splitting the core library and frameworks into separate modules, so you'll be able to download only what you need.

Any idea of how far off that is? Will there be support for ngbootstrap/ngx-bootstrap similar to material?

jscharett avatar Nov 20 '17 14:11 jscharett

Any Update would really...really be helpful, we need the separation from Material as in yesterday.

blacksnow88 avatar Apr 06 '18 14:04 blacksnow88

@blacksnow88 https://github.com/boydy12/angular2-json-schema-form-core

jroboyd avatar Apr 06 '18 14:04 jroboyd