Template Driven Forms in Angular

  Рет қаралды 19,333

Study Mash

Study Mash

Күн бұрын

Пікірлер: 54
@ZenOfTube
@ZenOfTube 3 жыл бұрын
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.
@StudyMash
@StudyMash 3 жыл бұрын
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
@CarlosRibeiroRC Жыл бұрын
At 18:30 for angular 15: Please provide name Name must be at least 5 characters long
@HritikKumar-h3n
@HritikKumar-h3n 11 ай бұрын
thanks aloot
@olenakhomeniuk7039
@olenakhomeniuk7039 3 жыл бұрын
This is just the best tutorial for Angular ! God bless you!
@midhunmohan5112
@midhunmohan5112 4 жыл бұрын
Nice tutorials.. clear and crisp!
@banavalikar
@banavalikar 4 жыл бұрын
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?
@StudyMash
@StudyMash 4 жыл бұрын
Yes, you are correct, it will give compile time error if you will not remove it.
@ZenOfTube
@ZenOfTube 3 жыл бұрын
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.
@sampleee
@sampleee 4 жыл бұрын
When will we begin doing the back end code with C#?
@StudyMash
@StudyMash 4 жыл бұрын
First we will setup all models and screens and save all data in browser local storage. Then we will start creating database API.
@pattywilliams7314
@pattywilliams7314 4 жыл бұрын
@@StudyMash Do you know when you will have those videos uploaded?
@devenshah3653
@devenshah3653 4 жыл бұрын
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.
@StudyMash
@StudyMash 4 жыл бұрын
You will have to remove form parameter from onSubmit method in component as well to get this work.
@VipinKumar-pl2nr
@VipinKumar-pl2nr Жыл бұрын
@@StudyMash not working when I try to remove form from onsubmit()
@vipinsingh-ce3bu
@vipinsingh-ce3bu Жыл бұрын
ERROR TypeError: Cannot read properties of undefined (reading 'tabs') any one have this issue?
@kasperkat2004
@kasperkat2004 4 жыл бұрын
I like this form!
@MBDiscover
@MBDiscover 3 жыл бұрын
Hi dear Mash, i'm getting this error although imported FormsModule and ReactiveFormsModule: No directive found with exportAs 'ngForm'.
@StudyMash
@StudyMash 3 жыл бұрын
Can you share the github link to your code?
@jameshemen9740
@jameshemen9740 3 жыл бұрын
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
@shankarghimire4492
@shankarghimire4492 3 жыл бұрын
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!
@jameshemen9740
@jameshemen9740 3 жыл бұрын
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; ~~~~~~~~~~~~~~~
@StudyMash
@StudyMash 3 жыл бұрын
Can you give me the github link to your code
@murthyvvn27
@murthyvvn27 3 жыл бұрын
use ! mark after addPropertyForm .. @ViewChild('Form') addPropertyForm!: NgForm;
@ingcheh69
@ingcheh69 4 жыл бұрын
my ngSubmit doesn't work, but when change to (submit), it works
@satishtirmulagiri9760
@satishtirmulagiri9760 4 жыл бұрын
Hi There, There is any way I can copy this code ?
@StudyMash
@StudyMash 4 жыл бұрын
Below is the link to code repository github.com/webtrainer-in/HSPA
@shivamrathore8515
@shivamrathore8515 3 жыл бұрын
propName.errors.required, propName.errors.minlength not working
@shivamrathore8515
@shivamrathore8515 3 жыл бұрын
Please provide name Name must be atleast 5 characters long Got the solution
@darahmed2355
@darahmed2355 2 жыл бұрын
@@shivamrathore8515 Thanks.. @Shivam Rathore
@vivek1692asd
@vivek1692asd 3 жыл бұрын
propName.errors.required, propName.errors.minlength not working , getting Object is possibly 'null'.
@RajendraSingh-ik2ny
@RajendraSingh-ik2ny 3 жыл бұрын
use "?" for handle null value like *ngIf="propName.errors?.required"
@TOPTECHY8
@TOPTECHY8 3 жыл бұрын
@@RajendraSingh-ik2ny thank u
@ninadylan4649
@ninadylan4649 3 жыл бұрын
Hi I have the same error
@ninadylan4649
@ninadylan4649 3 жыл бұрын
@@RajendraSingh-ik2ny this didn't help...is there any other way?
@TOPTECHY8
@TOPTECHY8 2 жыл бұрын
@@ninadylan4649 *ngIf="propName.errors?.['minlength']" this will help
@javiermanzanillo
@javiermanzanillo 4 жыл бұрын
hello! what happend with the asp.net core?
@StudyMash
@StudyMash 4 жыл бұрын
Will start after few more videos
@خالدحسن-ز5ف
@خالدحسن-ز5ف 4 жыл бұрын
thank you sir , 15 and 16 are the same.
@StudyMash
@StudyMash 4 жыл бұрын
Thanks for letting me know, I have removed one
@abdurmuneer2969
@abdurmuneer2969 4 жыл бұрын
Please help me sir i am stuck in that.
@vivekgajjar1469
@vivekgajjar1469 4 жыл бұрын
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
@balajeek
@balajeek 4 жыл бұрын
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.
@StudyMash
@StudyMash 4 жыл бұрын
No, bootstrap doesn't install Jquery by default and I use only css part of bootstrap.
@balajeek
@balajeek 4 жыл бұрын
got it thanks.
@itsolutions8431
@itsolutions8431 2 жыл бұрын
show images instead of field add property component
@StudyMash
@StudyMash 2 жыл бұрын
It is already there in later videos
@prabhgill4060
@prabhgill4060 2 жыл бұрын
My form is always valid even if no values are added,
@noorulaarefinsyed4393
@noorulaarefinsyed4393 2 жыл бұрын
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
@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
Reactive Forms in angular
22:49
Study Mash
Рет қаралды 21 М.
Add Filtering and Sorting using angular pipes
22:55
Study Mash
Рет қаралды 31 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Angular 19 is a BEAST of a release!
19:39
Maximilian Schwarzmüller
Рет қаралды 60 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 922 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 77 М.
Save Data to Local Storage in Angular | Angular Tutorial
17:12
Study Mash
Рет қаралды 58 М.
Learn HTML Forms In 25 Minutes
24:56
Web Dev Simplified
Рет қаралды 997 М.
Angular 9 Tutorial For Beginners #8 - Modules
13:53
ARCTutorials
Рет қаралды 37 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 74 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН