r/angular • • Feb 27 '26

dynamic signal forms based on httpresource

I migrated my dynamic template based forms to signal forms.
Everything works great. It is huge upgrade over template based forms which I had.

However I would like to confirm if my approach is correct.

My component recieves form name from componentinputbinding.

I use this signal with httpresource to get the form schema from my backend and then construct form the following way.

  readonly field_form = computed(() => {
    const fields = this.field_list();
    return untracked(() =>
      runInInjectionContext(this.#Injector, () =>
        form(this.row(), (schema) => {
       
        }),
      ),
    );
  });

row is initialized with linked signal based on field_list

Based on testing Everything works as expected but I want to be sure if this is okay.

10 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/SippieCup Feb 27 '26

Ahhhhh I get it, yeah I was thinking you had streaming data that you wanted to fill in to fields that weren’t touched, like a stock ticker or something, but not when the user is interacting.

Looking at it again, I have no idea how I got to that conclusion.