There are a couple of comments about this, but right around 15:25 it is necessary to remove the parameter "form: NgForm" from your onSubmit() method because we are no longer passing anything to it from our template. Sandeep you may want to edit in a quick note in the video to help avoid confusion.
@StudyMash3 жыл бұрын
Thanks for reminding me this, I will look at this and add it, for now I am pining your comment so that it will always be on the top of this video. Thaks again for your valuable feedback.
@CarlosRibeiroRC Жыл бұрын
At 18:30 for angular 15: Please provide name Name must be at least 5 characters long
@HritikKumar-h3n11 ай бұрын
thanks aloot
@olenakhomeniuk70393 жыл бұрын
This is just the best tutorial for Angular ! God bless you!
@midhunmohan51124 жыл бұрын
Nice tutorials.. clear and crisp!
@banavalikar4 жыл бұрын
At 15:26, the Form: NgForm argument has to be removed from the onSubmit method for the code at 15:30 to work. Is this correct?
@StudyMash4 жыл бұрын
Yes, you are correct, it will give compile time error if you will not remove it.
@ZenOfTube3 жыл бұрын
In Visual Studio Code I get errors on my ngForm and ngModel at first, but a restart of the IDE makes them go away for a while. the code works and compiles but this seems to be an bug with VS Code.
@sampleee4 жыл бұрын
When will we begin doing the back end code with C#?
@StudyMash4 жыл бұрын
First we will setup all models and screens and save all data in browser local storage. Then we will start creating database API.
@pattywilliams73144 жыл бұрын
@@StudyMash Do you know when you will have those videos uploaded?
@devenshah36534 жыл бұрын
at 15:30 when you remove Form variable from onSubmit() method, I get this error ERROR in src/app/property/addProperty/addProperty.component.html:8:27 - error TS2554: Expected 1 arguments, but got 0. 8 ~~~~~~~~ src/app/property/addProperty/addProperty.component.ts:8:16 8 templateUrl: './addProperty.component.html', ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component AddPropertyComponent. But if keep it, error goes away.
@StudyMash4 жыл бұрын
You will have to remove form parameter from onSubmit method in component as well to get this work.
@VipinKumar-pl2nr Жыл бұрын
@@StudyMash not working when I try to remove form from onsubmit()
@vipinsingh-ce3bu Жыл бұрын
ERROR TypeError: Cannot read properties of undefined (reading 'tabs') any one have this issue?
@kasperkat20044 жыл бұрын
I like this form!
@MBDiscover3 жыл бұрын
Hi dear Mash, i'm getting this error although imported FormsModule and ReactiveFormsModule: No directive found with exportAs 'ngForm'.
@StudyMash3 жыл бұрын
Can you share the github link to your code?
@jameshemen97403 жыл бұрын
Hello everyone. I am having this error and am stocked for days. I did exactly what he did and I still have the error. Property 'addPropertyForm' has no initializer and is not definitely assigned in the constructor. @ViewChild('Form') addPropertyForm: NgForm; in my add-property.component.ts, Please help am stocked
@shankarghimire44923 жыл бұрын
Hi James, I guess it is already so late to response, but still, I solved it by using '!' sign. I think, it is new rules required in the Angular 12 to declare a variable without initializing any value. @ViewChild('Form') addPropertyForm !: NgForm; Just put '!' sign in front of the ':' sign. Hopefully it might help to others as well who might get the same issue and get stuck in coming days! Cheers!
@jameshemen97403 жыл бұрын
Kindly help Sir, I am using angular 12 Error: add-property/add-property.component.ts:11:22 - error TS2564: Property 'addPropertyForm' has no initializer and is not definitely assigned in the constructor. 11 @ViewChild('Form') addPropertyForm: NgForm; ~~~~~~~~~~~~~~~
@StudyMash3 жыл бұрын
Can you give me the github link to your code
@murthyvvn273 жыл бұрын
use ! mark after addPropertyForm .. @ViewChild('Form') addPropertyForm!: NgForm;
@ingcheh694 жыл бұрын
my ngSubmit doesn't work, but when change to (submit), it works
@satishtirmulagiri97604 жыл бұрын
Hi There, There is any way I can copy this code ?
@StudyMash4 жыл бұрын
Below is the link to code repository github.com/webtrainer-in/HSPA
@shivamrathore85153 жыл бұрын
propName.errors.required, propName.errors.minlength not working
@shivamrathore85153 жыл бұрын
Please provide name Name must be atleast 5 characters long Got the solution
@darahmed23552 жыл бұрын
@@shivamrathore8515 Thanks.. @Shivam Rathore
@vivek1692asd3 жыл бұрын
propName.errors.required, propName.errors.minlength not working , getting Object is possibly 'null'.
@RajendraSingh-ik2ny3 жыл бұрын
use "?" for handle null value like *ngIf="propName.errors?.required"
@TOPTECHY83 жыл бұрын
@@RajendraSingh-ik2ny thank u
@ninadylan46493 жыл бұрын
Hi I have the same error
@ninadylan46493 жыл бұрын
@@RajendraSingh-ik2ny this didn't help...is there any other way?
@TOPTECHY82 жыл бұрын
@@ninadylan4649 *ngIf="propName.errors?.['minlength']" this will help
@javiermanzanillo4 жыл бұрын
hello! what happend with the asp.net core?
@StudyMash4 жыл бұрын
Will start after few more videos
@خالدحسن-ز5ف4 жыл бұрын
thank you sir , 15 and 16 are the same.
@StudyMash4 жыл бұрын
Thanks for letting me know, I have removed one
@abdurmuneer29694 жыл бұрын
Please help me sir i am stuck in that.
@vivekgajjar14694 жыл бұрын
thanx sir, one of the my requests is that if you create a WhatsApp group and put the link in your channel description , you will be able to help much more and you will be very much inspired
@balajeek4 жыл бұрын
I know you stay away from jquery, I beleive you use bootstrap doesn't it install jquery by default! I notice you use ngx-bootstrap which is great and I try to add that to my project.
@StudyMash4 жыл бұрын
No, bootstrap doesn't install Jquery by default and I use only css part of bootstrap.
@balajeek4 жыл бұрын
got it thanks.
@itsolutions84312 жыл бұрын
show images instead of field add property component
@StudyMash2 жыл бұрын
It is already there in later videos
@prabhgill40602 жыл бұрын
My form is always valid even if no values are added,
@noorulaarefinsyed43932 жыл бұрын
you need to add required attribute in all your input fields for ex :- , this will make it Invalid if the required fields don't have data entered.
@abedja100 Жыл бұрын
Hello everyone if you have an errors with (propName.errors.required) try this span Please provide the name and the same in minlength Thanks