You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Travis,
Thank you for the quick response regarding issue #57.
As per your instructions I extended core FormioService class in my own Service class and passed that service variable to <formio> directive but code flow gets stuck in FormioComponent ngOnInit().
This is because when compiler sees <formio> directive it automatically invokes Formio.Component core class after which ngOnInit() function gets executed where there are 2 conditions:
this.form
this.src && !this.service
After this flow is terminated as there is no condition for both src and service.
I have raised pull request solving this issue Bugfix/FormioComponent #58 where I have extended formio service in following way ## HTML <formio src="test.json" service="ExtFormioService"></formio> ## component
export class AppComponent {
@Input() src: string;
@Input() service: ExtFormioService; //Extended formioservice class
constructor() {
this.src = 'test.json';
this.service = new ExtFormioService(this.src);
}
}
Hi Travis,
Thank you for the quick response regarding issue #57.
As per your instructions I extended core FormioService class in my own Service class and passed that service variable to
<formio>
directive but code flow gets stuck in FormioComponent ngOnInit().This is because when compiler sees
<formio>
directive it automatically invokes Formio.Component core class after which ngOnInit() function gets executed where there are 2 conditions:this.form
this.src && !this.service
After this flow is terminated as there is no condition for both src and service.
I have raised pull request solving this issue Bugfix/FormioComponent #58 where I have extended formio service in following way
## HTML
<formio src="test.json" service="ExtFormioService"></formio>
## component
## Extended Service
Consider merging the pull request with your formio master. Please let me know your comments.
The text was updated successfully, but these errors were encountered: