As a newbie to Angular, I tried watching multiple videos on Reactive vs Template-driven forms. This was the only video whose explanation and use of graphics finally made it click in my head. Thank you Mosh! Don't know why I even bothered looking elsewhere for learning Angular Forms.
@rjconnolly6 жыл бұрын
You are my hero - coming from an HTML PHP environment this is helping me out so much!!! THANK YOU!
@sanmani77817 жыл бұрын
Thank you Brother. This video helped me to learn the angular form very easily. God Bless You.
@m.m.farhad52922 жыл бұрын
Can not thank you enough Mosh, lifesaver.
@bubamanjang7 жыл бұрын
Your efforts in making these amazing videos is highly appreciated. Thank you so much!
@ananthuvenugopal96552 жыл бұрын
This is one of the finest tutorial about forms in angular. Explained everything crystal clear. Thank you so much 🙏
@dominiccampese2159 Жыл бұрын
This is exactly the explanation I was looking for great content
@someshnukala8044 жыл бұрын
One of the greatest Technical Teachers in the world. Mosh sir! Thank you so much sir. Hats off
@NourLababidi6 жыл бұрын
Thank you very much. The speed is perfect and the instructions are clear . One of the best. Thank you!
@marekkazimierczak92102 жыл бұрын
You are amazing teacher, Mosh! 🏆
@williamsbron26863 жыл бұрын
that was great Mosh it helps me a lot really really really really thank you Mosh😍😍😍😍😍
@Vedase262 жыл бұрын
I must share my feedback about this video. Content is very easily understandable. I tried many other videos to understand how these formCcntrol and formGroup works. I failed many times to ans properly in interview. But this video made concept clear to me. Thanks a lot.
@sample18013 жыл бұрын
Thank you mosh ! This video explained me easier !
@yogeshcaptain7 жыл бұрын
that's wonderful and so easy to understand. Thanks a lot Mosh :)
@jasminem3605 жыл бұрын
you are really good at explaining ! help me a lot!
@manjunathrajure22576 жыл бұрын
This helped a lot to understand angular forms in simpler way.
@farhangmdc2 жыл бұрын
Great Explanation 😇
@danishchief10785 жыл бұрын
From anyone who gets an error "There is no directive with "exportAs" set to "ngModel"" you should: import { FormsModule, ReactiveFormsModule } from "@angular/forms"; @NgModule({ imports: [ BrowserModule, FormsModule, //
@saivaruntangalla22795 жыл бұрын
Do we need it import it in component.ts file
@bilalnizamani74474 жыл бұрын
I have the same problem.
@SapreShreyas4 жыл бұрын
thanks man! add this in app.module.ts
@TheDruzzila4 жыл бұрын
i love your face so much and i dont know even how you look like
@hafsadolly68304 жыл бұрын
Where we should do this?
@rjbirelly15 жыл бұрын
Thank you Mosh. Your videos are amazing and very easy to understand the concepts.
@hussain57557 жыл бұрын
I can never thank you enough you have restored my faith in humanity Love you man. Please keep making these awesome videos with the amazing explanation of theory and the code along solutions thanks again
@julioblancas7067 жыл бұрын
Thank you for sharing your time and knowledge with the people loves learn. Congratulations!.
@nashrampy6 жыл бұрын
Thank You Mosh!
@grazielesilva53065 жыл бұрын
Thank you for share some knowledge and spend some time doing that kind of content for the community! Bless you.
@jamaluddinmondal92765 жыл бұрын
Thanks for giving a clean explanation ,👌 You may use Prettier extension on Vs Code automatically every property will be shown line by line
@1000lino4 жыл бұрын
Clear and concises explainations make the subjet so much easier to understand Thank you so much!
@premiuminstituteofexcellen90352 жыл бұрын
For Angular 13 use this statement First Name Required
@noname-bh1os7 жыл бұрын
Well explained. thanks a lot Mosh!!
@ledspbr6 жыл бұрын
Puts... Este cara é muito bom This guy is greeeat teacher
@khizer35286 жыл бұрын
Excellent 🔥🔥 Thank you for this tutorial .
@bigsmall995 жыл бұрын
Excellent instruction.
@anandbmuley5 жыл бұрын
I like the part and the thought process behind code formatting. You should always treat the code as an art too and not only science👍
@romankostiuk4 жыл бұрын
Good lesson for beginers... thanks!
@soultouchingsongs6 жыл бұрын
You are the best👍. It helped me a lot.. Thank u..
@Shiva-zy7jq4 жыл бұрын
Thank you Mosh for the video.
@breakingcode927 жыл бұрын
Thanks so much for making this video.. Honestly it was such a good help. I'll link you when I'm done with the site I'm working on :D
@soundariyab2065 жыл бұрын
Amazing and very helpful video, as I am a beginner in angular so this video is very helpful to clear basic things related to angular form and controls. Thank you Mosh for this video and please try to make some more videos on angular basics especially for beginners.
@objectObject2126 жыл бұрын
Great tutorial, thanks.
@charliemccharlie2 жыл бұрын
In the most recent versions of Angular you might get errors that one of these validation properties might be null. In such a case, you can use a safe navigation operator such as this: *ngIf="firstName.errors?.['required']"
@7Rainbows6 жыл бұрын
Thank you so much Mosh
@irohits33143 жыл бұрын
Its a great help..Thanks
@mahilkr5 жыл бұрын
Very nice, great presentation.
@journeyofadigitalartist50215 жыл бұрын
you made this easy to understand, I will still watch it again , though
@mathieufabre71944 жыл бұрын
really good video, good sound, good voice, and goos explanations. a f****ing good work !
@ScienceSeekho3 жыл бұрын
Your the best please upload all courses on udemy I am ready to pay
@nareshgoud19056 жыл бұрын
Great video Mr.Mosh. thank you very much
@davooddehghan656 жыл бұрын
Thank You man great tutorial it's an amazing work!
@asifaasi9186 жыл бұрын
tnQ Mr.Mosh
@santoshsingh64046 жыл бұрын
Many Thanks for such an awesome videos. Thanks a Ton Sir!!!!
@maximrunix5 жыл бұрын
sos un groso , gracias , me salvaste la vida
@aoam91946 жыл бұрын
I like your videos. Thanks alot mosh 😃
@tejpalsingh2946 жыл бұрын
حسبي الله لا اله الا هو الحي القيوم ggghhtt ho ki hi
@aoam91946 жыл бұрын
Tejpal Singh 😒 I don't understand this language
@ErayTonyali7 жыл бұрын
Thanks for your amazing tutorial!
@MrTryten3 жыл бұрын
The besting about your teaching is that you advise on the use case scenarios…. That is a great way to learn…. Thanks
@bmulamba66853 жыл бұрын
this is awersome thank you
@ASouza-ut9kb6 жыл бұрын
Much better then oficial site!
@slays69165 жыл бұрын
awesome job man!
@bilelmaaloul78502 жыл бұрын
thanks for the effort
@priyeshprince23185 жыл бұрын
Thanks Mr tutor
@raghubsrinivas60255 жыл бұрын
Thank you for this Information.
@jainshilpi37 жыл бұрын
I am getting this error There is no directive with "exportAs" set to "ngModel" ("ass="form-group"> Name: ]#firstName="ngModel" (change)="log(firstName)" type="text" class="form-control" id="firstName"/>
you have to add the validation rule in input filed.. so change the input field from ]#firstName="ngModel" (change)="log(firstName)" type="text" class="form-control" id="firstName"/> to ]#firstName="ngModel" (change)="log(firstName)" type="text" class="form-control" id="firstName"/>
@amaanimtiyaz6 жыл бұрын
For those whom are looking for the same: 1.Go to app.module.ts 2.Paste - import {FormsModule} from '@angular/forms' ; 3. In "Imports" section down there: write FormModule eg: imports: [ BrowserModule, FormsModule ]
@petarjovanovic85246 жыл бұрын
Did you solve that problem ,cuz I got the same ? Thanks!
@SushilSharma-po6ur7 жыл бұрын
Such a nice video helping to easily create an angular form
@elenegulordava18687 жыл бұрын
Thank for your detailed, great explanations, it's an amazing work!
@akfsf00543 Жыл бұрын
Angualr 17:- Time10:28 #firstName="ngModel" error NG8003: No directive found with exportAs 'ngModel'. [plugin angular-compiler]
@ericwilfriedettien46037 жыл бұрын
Thank you very much !
@jagadeeshkalugotla5 жыл бұрын
Actually i was struggled a lot for form validating but trust me this is the one of the best tutorial ----->Jagadeesh
@faisalmushtaq60084 жыл бұрын
An excellent tutorial indedd
@skilljourney63575 жыл бұрын
r u great teacher.
@ale_lunalili6 жыл бұрын
Great video, thanks.
@tonynguyendtn19846 жыл бұрын
would you ever consider updating your courses for Angular 7?
@abderazzakmnaimoutaanni17633 жыл бұрын
Hello, Thanks for the awesome video, I just want to add that on Angular10, the firstName.errors object can be NULL, so you need to use the safe navigation operator ? *ngIf="firstName.errors?.required" regards
@aviralgoel28412 жыл бұрын
And now in 2022 use *ngIf="firstName.errors?.['required']"
@sharathkp23104 жыл бұрын
nice class
@weezySKLH6 жыл бұрын
Dude you are the best
@SushilSharma-po6ur7 жыл бұрын
Thanks a lot Mosh
@alyaaabou_elhamd13316 жыл бұрын
thank you so much .. i need a reactive form video please
@Me.anything4 жыл бұрын
You didn't explain how bootstrap css class was being applied on form? For me classes are not being applied?
@proxy50614 жыл бұрын
hey i am also stuck there plz let me know how to use boot strap
@robertoradu99654 жыл бұрын
add this to yor code
@airor44 жыл бұрын
6 months late but you can add the bootstrap.min.css relative path to your angular.json styles property which will give you global access to bootstrap. Or I think you can link it in the stylesUrl attribute within the component decorator within the ts file. Or you could do what @Roberto Radu said and link it directly within the html.
@estebansepulveda54073 жыл бұрын
@@robertoradu9965 thanks buddy! This should be added to the html file. Though I still dont see the red alert when the error pops up
@abderazzakmnaimoutaanni17633 жыл бұрын
install bootstrap by executing the cmd npm install --save bootstrap then go to angular.json file and add on "styles" : "node_modules/bootstrap/dist/css/bootstrap.css",
@rahulmathew87136 жыл бұрын
U can do mvvm in angular you dont need reactive form and other crap. You decide your architecture the framework should not decide for you. And unlike react , you don't need to write html inside javascript. So there is clear separation of concern. View is not responsible for checking business logic , its business model job to do that and let the view know about how to present the data via viewmodel. Just create a viemodel and bind that to the view. Do data transformation logic and data validation inside a business model. Inject the business model to view model via the constructor. inject the dataservice api layer to model via constructor. If you need to call component B from component A, just expose an interface and let A create a viewmodel by inheriting from that interface and pass an instance of that viewmodel as a property binding to B. Thats it. Angular clearly simplifies the architecture and lets your write decoupled manageable application. Period.
@rickys34813 жыл бұрын
This is the best
@ramuk95705 жыл бұрын
use full of the beginners
@JavedOnBike7 жыл бұрын
#firstName="ngModel" is not working for me. instead I have to use firstName="ngModel". but unable to use firstName in validation
@savezmomin16475 жыл бұрын
i was also having problem with that thank you brother
@danielaregawi5 жыл бұрын
Thank you so for sharing this video!! What's the editor you we're working on?? I love how it simply generates the markup can you please share how I can use it too?
@jamaluddinmondal92765 жыл бұрын
Vs Code Editor by Microsoft
@SalmanManzoorGorssi4 жыл бұрын
at 4:33 are you using css??
@RandomNiceThings124 жыл бұрын
great video
@agustinbcu5 жыл бұрын
Great video, but the way awesome t-shirt.
@jainshilpi37 жыл бұрын
I m getting below error There is no directive with "exportAs" set to "ngModel" ("ass="form-group"> Name: ]#firstName="ngModel" (change)="log(firstName)" type="text" class="form-control" id="firstName"/>
@bilalafridi53267 жыл бұрын
got to app.module.ts and import form module.. like this: import { FormsModule } from '@angular/forms'; and then add it to the below @NgModule imports like this: imports: [ BrowserModule, FormsModule ],
@bilalafridi53267 жыл бұрын
you might have solved this but it could help others.
@muralinaidu10596 жыл бұрын
even after doing this. it didnt work
@madhusudhan90966 жыл бұрын
yes its working
@annusunny6 жыл бұрын
for variable #firstName use varFirstName or _firstName | In short here ngModel name and variable name should not be same.
@SzigSag6 жыл бұрын
Hy there,... i was wondering why im getting the ERROR TypeError: Cannot read property 'required' of null! Been already on stackoverflow and the angular docs but no solution could help me get rid of that problem! You guys have any solutions for me? ;) btw... visual studio gives me that error message aswell: Identifier 'required' is not defined. '__type' does not contain such a member
@prayagparikh80203 жыл бұрын
It's showing same error for me. What's the solution?
@cvchanel47634 жыл бұрын
Thank you verry much :)
@neko_senpaianimeamvedits95983 жыл бұрын
Nice ❤
@hassanaguezoum34774 жыл бұрын
Thank you ❤
@amahrizal6 жыл бұрын
Many thanks
@srujithraoambati40424 жыл бұрын
Sir, I got an error that displayed "no directive found with exportAs ngModel". Can you please help me out?
@lucaslemos19774 жыл бұрын
Srujith Rao Ambati in your appmodule.ts import NgModule and FormsModule, if you not imported yet
@srujithraoambati40424 жыл бұрын
@@lucaslemos1977 I did that but still got the error
@nexopos33107 жыл бұрын
I got an issue... with the template variable (#formName). Returns There is no directive with "exportAs" set to "ngModel"
@greysonyee47007 жыл бұрын
same issue here, both FormModule and ReactiveFormModule is imported. Please help.
@cardflopper33077 жыл бұрын
don't forget the "s", it is FormsModule, not FormModule
@purshotham916 жыл бұрын
Seriously your tutorial was very helpful for me. But you didn't mention about submit button validation. Can you help me with that?
@arjunsunny9994 жыл бұрын
Yoy are great.. ty,,,,,,,Where d o i get this code????
@benjaminperez67772 жыл бұрын
exelente video
@alaamoustafa79916 жыл бұрын
you are perfect !
@cachkiemtienonlinetainha5 жыл бұрын
Thank you so much
@manishankar86884 жыл бұрын
i cannot see metadata of ngmodel drictive in the development tool. what is need to done to see metadata example details of ng_module.
@علياءاسامه-ت4م6 жыл бұрын
thanks a lot .It is awesome
@EldarKhaitov6 жыл бұрын
Why my controls are invisible on nested form? I have one master form and insert nested form with components. The nested forms are invisible.
@SureshBabu-pz5ks5 жыл бұрын
HI Mosh, Iam getting the Error: No value accessor for form control with name: 'firstName' plz let me know how to fix
@guyr9897 жыл бұрын
Great video! But how do you clean all the alerts after you 'unFoucused'? and how to add a confirm submission massage?