Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support and update for angular6 #303

Open
tmburnell opened this issue Jul 20, 2018 · 4 comments
Open

Support and update for angular6 #303

tmburnell opened this issue Jul 20, 2018 · 4 comments

Comments

@tmburnell
Copy link

I have a team using this tool, and they are upgrading to angular6. And we noticed this has not had any updates since Feb.
Is this component still planned to be publicly supported?
Is there plans to migrate to Angular6?
Is there plans to update material versions?

@Koslun
Copy link

Koslun commented Jul 23, 2018

@tmburnell
Duplicate of at least issues #263 and #302. There is a PR with a working Angular 6 upgrade here: #230 (comment). We've been using the NoFramework option for a little while now, Material version is too buggy in both this and prior versions while other frameworks would force us to load multiple CSS frameworks which would likely collide on several fronts.

Planning on investigating an alternate solution using this library: ngx-formly/ngx-formly#1056. It doesn't currently support JSON schema but otherwise seems to have a pretty solid and stable form generation going on with a growing community. At the very least just generating regular fields is already done and some validation should be possible from that, what I worry more for is when you nest them in arrays and objects on top of that while also supporting every validation available.

@hamzahamidi
Copy link

hamzahamidi commented Aug 6, 2018

@tmburnell You can use Angular6-json-schema-form which is compatible with Angular v6

@tmburnell
Copy link
Author

@hamzahamidi is the link you sent a copy of this repo but you have updated to angular6 for yourself?

@hamzahamidi
Copy link

@tmburnell It's a continuation to this repository but using angular-cli v6 new generate library option.
The import changed however, for example to use Bootstrap4:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { Bootstrap4FrameworkModule } from 'angular6-json-schema-form';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule
    Bootstrap4FrameworkModule
  ],
  providers: [],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

And you use the component like the following:

<json-schema-form
loadExternalAssets="true"
[schema]="schema"
framework="bootstrap-4"
(onSubmit)="submit($event)">
</json-schema-form>

If you still face the same issue, can you make a repository to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants