Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

My Screen goes blank when I tried to add <Form> tag on newly created page (Angular + .Net Core) #8519


User avatar
0
optixdev created

My Screen goes blank and url navigate to "http://localhost:4200/" when I tried to add Form> tag on newly created page (Angular + .Net Core)


10 Answer(s)
  • User Avatar
    0
    optixdev created

  • User Avatar
    0
    maliming created
    Support Team

    Is there an error in the browser console?

  • User Avatar
    0
    optixdev created

  • User Avatar
    0
    BobIngham created

    HI @optixdev, Follow the instructions for angular reactive forms, in your case I don't think you have imported the ReactiveFormsModule to your module:

      imports: [
        FormsModule,
        ReactiveFormsModule,
    

    Hope that helps.

  • User Avatar
    0
    optixdev created

    I am still facing the problem: I use the basic reactive form example from the - https://www.techiediaries.com/build-angular-form/ I already did the necessary changes to app module file.

  • User Avatar
    -1
    BobIngham created

    @optixdev, I feel for you, you are obviously at the bottom of a steep learning curve! Your problem is not Zero related but angular related, google "angular can't bind to 'formgroup' since it isn't a known property of 'form'" and you will find your answer amongst 3,000 choices: Can't bind to 'formGroup' since it isn't a known property of 'form' Good luck!!

  • User Avatar
    0
    optixdev created

    @bobingham same Angular code is running on the another application but its not running on the Zero, hope you understand.

  • User Avatar
    -1
    BobIngham created

    Not a problem, check your module declarations in your other project, it's obviously an import issue. Glad to help if I can but I think with a little more perserverance you'll find the issue here.

  • User Avatar
    0
    optixdev created

    import { FormsModule, ReactiveFormsModule } from '@angular/forms';

    imports: [ FormsModule, BrowserModule, ReactiveFormsModule ],

  • User Avatar
    0
    BobIngham created

    See above, first answer!!!!