angular
angular copied to clipboard
form manager doesn't work
i'm trying to use a Form Manager but this error keep show up
You need to have an AppConfig in your application. See https://help.form.io/intro/guide/#appconfig and you add it to your module like this.
...
...
import { AppConfig } from './config';
import { FormioAppConfig } from 'angular-formio';
@NgModule({
...
...
providers: [
{provide: FormioAppConfig, useValue: AppConfig}
]
})
export class AppModule { }
actually i added appConfig to my project but i still have the same issue
The error is No provider for FormioAppConfig
and my suggestion was to add it to the providers of your module. I am not sure why this would not work. Please provide a demo of the issue so we can see how your code is structured. Do you have multiple modules in your application?
I tried to add authentication module and form module, there is my demo : https://github.com/sarashid/form-Builder
@travist
I am curious if anyone else is having this problem. Nobody else is really chiming in.... one that happens I will take a look.
It seems like there's no way to use the formbuilder without adding some API URL. If you use a blank appConfig
the form builder will not launch at all. If you add a dummy placeholder like ''
or demo
it will throw console errors.
StaticInjectorError(AppModule)[IndexComponent -> FormManagerService]:
Have followed the recommendations above, still getting the same error. Any further recommendations will be appreciated. Code is here dev branch:
https://dev.azure.com/stevenbowler1/angularFormIO/_git/sbFormIO
Cheers.
Hi, having the same issue. Any updates on this?