Building Forms in Angular Apps | Mosh

  Рет қаралды 420,252

Programming with Mosh

Programming with Mosh

Күн бұрын

Пікірлер: 204
@sahil-bawa
@sahil-bawa 3 жыл бұрын
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.
@rjconnolly
@rjconnolly 6 жыл бұрын
You are my hero - coming from an HTML PHP environment this is helping me out so much!!! THANK YOU!
@sanmani7781
@sanmani7781 7 жыл бұрын
Thank you Brother. This video helped me to learn the angular form very easily. God Bless You.
@m.m.farhad5292
@m.m.farhad5292 2 жыл бұрын
Can not thank you enough Mosh, lifesaver.
@bubamanjang
@bubamanjang 7 жыл бұрын
Your efforts in making these amazing videos is highly appreciated. Thank you so much!
@ananthuvenugopal9655
@ananthuvenugopal9655 2 жыл бұрын
This is one of the finest tutorial about forms in angular. Explained everything crystal clear. Thank you so much 🙏
@dominiccampese2159
@dominiccampese2159 Жыл бұрын
This is exactly the explanation I was looking for great content
@someshnukala804
@someshnukala804 4 жыл бұрын
One of the greatest Technical Teachers in the world. Mosh sir! Thank you so much sir. Hats off
@NourLababidi
@NourLababidi 6 жыл бұрын
Thank you very much. The speed is perfect and the instructions are clear . One of the best. Thank you!
@marekkazimierczak9210
@marekkazimierczak9210 2 жыл бұрын
You are amazing teacher, Mosh! 🏆
@williamsbron2686
@williamsbron2686 3 жыл бұрын
that was great Mosh it helps me a lot really really really really thank you Mosh😍😍😍😍😍
@Vedase26
@Vedase26 2 жыл бұрын
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.
@sample1801
@sample1801 3 жыл бұрын
Thank you mosh ! This video explained me easier !
@yogeshcaptain
@yogeshcaptain 7 жыл бұрын
that's wonderful and so easy to understand. Thanks a lot Mosh :)
@jasminem360
@jasminem360 5 жыл бұрын
you are really good at explaining ! help me a lot!
@manjunathrajure2257
@manjunathrajure2257 6 жыл бұрын
This helped a lot to understand angular forms in simpler way.
@farhangmdc
@farhangmdc 2 жыл бұрын
Great Explanation 😇
@danishchief1078
@danishchief1078 5 жыл бұрын
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, //
@saivaruntangalla2279
@saivaruntangalla2279 5 жыл бұрын
Do we need it import it in component.ts file
@bilalnizamani7447
@bilalnizamani7447 4 жыл бұрын
I have the same problem.
@SapreShreyas
@SapreShreyas 4 жыл бұрын
thanks man! add this in app.module.ts
@TheDruzzila
@TheDruzzila 4 жыл бұрын
i love your face so much and i dont know even how you look like
@hafsadolly6830
@hafsadolly6830 4 жыл бұрын
Where we should do this?
@rjbirelly1
@rjbirelly1 5 жыл бұрын
Thank you Mosh. Your videos are amazing and very easy to understand the concepts.
@hussain5755
@hussain5755 7 жыл бұрын
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
@julioblancas706
@julioblancas706 7 жыл бұрын
Thank you for sharing your time and knowledge with the people loves learn. Congratulations!.
@nashrampy
@nashrampy 6 жыл бұрын
Thank You Mosh!
@grazielesilva5306
@grazielesilva5306 5 жыл бұрын
Thank you for share some knowledge and spend some time doing that kind of content for the community! Bless you.
@jamaluddinmondal9276
@jamaluddinmondal9276 5 жыл бұрын
Thanks for giving a clean explanation ,👌 You may use Prettier extension on Vs Code automatically every property will be shown line by line
@1000lino
@1000lino 4 жыл бұрын
Clear and concises explainations make the subjet so much easier to understand Thank you so much!
@premiuminstituteofexcellen9035
@premiuminstituteofexcellen9035 2 жыл бұрын
For Angular 13 use this statement First Name Required
@noname-bh1os
@noname-bh1os 7 жыл бұрын
Well explained. thanks a lot Mosh!!
@ledspbr
@ledspbr 6 жыл бұрын
Puts... Este cara é muito bom This guy is greeeat teacher
@khizer3528
@khizer3528 6 жыл бұрын
Excellent 🔥🔥 Thank you for this tutorial .
@bigsmall99
@bigsmall99 5 жыл бұрын
Excellent instruction.
@anandbmuley
@anandbmuley 5 жыл бұрын
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👍
@romankostiuk
@romankostiuk 4 жыл бұрын
Good lesson for beginers... thanks!
@soultouchingsongs
@soultouchingsongs 6 жыл бұрын
You are the best👍. It helped me a lot.. Thank u..
@Shiva-zy7jq
@Shiva-zy7jq 4 жыл бұрын
Thank you Mosh for the video.
@breakingcode92
@breakingcode92 7 жыл бұрын
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
@soundariyab206
@soundariyab206 5 жыл бұрын
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.
@objectObject212
@objectObject212 6 жыл бұрын
Great tutorial, thanks.
@charliemccharlie
@charliemccharlie 2 жыл бұрын
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']"
@7Rainbows
@7Rainbows 6 жыл бұрын
Thank you so much Mosh
@irohits3314
@irohits3314 3 жыл бұрын
Its a great help..Thanks
@mahilkr
@mahilkr 5 жыл бұрын
Very nice, great presentation.
@journeyofadigitalartist5021
@journeyofadigitalartist5021 5 жыл бұрын
you made this easy to understand, I will still watch it again , though
@mathieufabre7194
@mathieufabre7194 4 жыл бұрын
really good video, good sound, good voice, and goos explanations. a f****ing good work !
@ScienceSeekho
@ScienceSeekho 3 жыл бұрын
Your the best please upload all courses on udemy I am ready to pay
@nareshgoud1905
@nareshgoud1905 6 жыл бұрын
Great video Mr.Mosh. thank you very much
@davooddehghan65
@davooddehghan65 6 жыл бұрын
Thank You man great tutorial it's an amazing work!
@asifaasi918
@asifaasi918 6 жыл бұрын
tnQ Mr.Mosh
@santoshsingh6404
@santoshsingh6404 6 жыл бұрын
Many Thanks for such an awesome videos. Thanks a Ton Sir!!!!
@maximrunix
@maximrunix 5 жыл бұрын
sos un groso , gracias , me salvaste la vida
@aoam9194
@aoam9194 6 жыл бұрын
I like your videos. Thanks alot mosh 😃
@tejpalsingh294
@tejpalsingh294 6 жыл бұрын
حسبي الله لا اله الا هو الحي القيوم ggghhtt ho ki hi
@aoam9194
@aoam9194 6 жыл бұрын
Tejpal Singh 😒 I don't understand this language
@ErayTonyali
@ErayTonyali 7 жыл бұрын
Thanks for your amazing tutorial!
@MrTryten
@MrTryten 3 жыл бұрын
The besting about your teaching is that you advise on the use case scenarios…. That is a great way to learn…. Thanks
@bmulamba6685
@bmulamba6685 3 жыл бұрын
this is awersome thank you
@ASouza-ut9kb
@ASouza-ut9kb 6 жыл бұрын
Much better then oficial site!
@slays6916
@slays6916 5 жыл бұрын
awesome job man!
@bilelmaaloul7850
@bilelmaaloul7850 2 жыл бұрын
thanks for the effort
@priyeshprince2318
@priyeshprince2318 5 жыл бұрын
Thanks Mr tutor
@raghubsrinivas6025
@raghubsrinivas6025 5 жыл бұрын
Thank you for this Information.
@jainshilpi3
@jainshilpi3 7 жыл бұрын
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"/>
@joaovitorfernandes8201
@joaovitorfernandes8201 6 жыл бұрын
stackoverflow.com/questions/38648407/angular2-error-there-is-no-directive-with-exportas-set-to-ngform
@bishoywagih9663
@bishoywagih9663 6 жыл бұрын
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"/>
@amaanimtiyaz
@amaanimtiyaz 6 жыл бұрын
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 ]
@petarjovanovic8524
@petarjovanovic8524 6 жыл бұрын
Did you solve that problem ,cuz I got the same ? Thanks!
@SushilSharma-po6ur
@SushilSharma-po6ur 7 жыл бұрын
Such a nice video helping to easily create an angular form
@elenegulordava1868
@elenegulordava1868 7 жыл бұрын
Thank for your detailed, great explanations, it's an amazing work!
@akfsf00543
@akfsf00543 Жыл бұрын
Angualr 17:- Time10:28 #firstName="ngModel" error NG8003: No directive found with exportAs 'ngModel'. [plugin angular-compiler]
@ericwilfriedettien4603
@ericwilfriedettien4603 7 жыл бұрын
Thank you very much !
@jagadeeshkalugotla
@jagadeeshkalugotla 5 жыл бұрын
Actually i was struggled a lot for form validating but trust me this is the one of the best tutorial ----->Jagadeesh
@faisalmushtaq6008
@faisalmushtaq6008 4 жыл бұрын
An excellent tutorial indedd
@skilljourney6357
@skilljourney6357 5 жыл бұрын
r u great teacher.
@ale_lunalili
@ale_lunalili 6 жыл бұрын
Great video, thanks.
@tonynguyendtn1984
@tonynguyendtn1984 6 жыл бұрын
would you ever consider updating your courses for Angular 7?
@abderazzakmnaimoutaanni1763
@abderazzakmnaimoutaanni1763 3 жыл бұрын
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
@aviralgoel2841
@aviralgoel2841 2 жыл бұрын
And now in 2022 use *ngIf="firstName.errors?.['required']"
@sharathkp2310
@sharathkp2310 4 жыл бұрын
nice class
@weezySKLH
@weezySKLH 6 жыл бұрын
Dude you are the best
@SushilSharma-po6ur
@SushilSharma-po6ur 7 жыл бұрын
Thanks a lot Mosh
@alyaaabou_elhamd1331
@alyaaabou_elhamd1331 6 жыл бұрын
thank you so much .. i need a reactive form video please
@Me.anything
@Me.anything 4 жыл бұрын
You didn't explain how bootstrap css class was being applied on form? For me classes are not being applied?
@proxy5061
@proxy5061 4 жыл бұрын
hey i am also stuck there plz let me know how to use boot strap
@robertoradu9965
@robertoradu9965 4 жыл бұрын
add this to yor code
@airor4
@airor4 4 жыл бұрын
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.
@estebansepulveda5407
@estebansepulveda5407 3 жыл бұрын
@@robertoradu9965 thanks buddy! This should be added to the html file. Though I still dont see the red alert when the error pops up
@abderazzakmnaimoutaanni1763
@abderazzakmnaimoutaanni1763 3 жыл бұрын
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",
@rahulmathew8713
@rahulmathew8713 6 жыл бұрын
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.
@rickys3481
@rickys3481 3 жыл бұрын
This is the best
@ramuk9570
@ramuk9570 5 жыл бұрын
use full of the beginners
@JavedOnBike
@JavedOnBike 7 жыл бұрын
#firstName="ngModel" is not working for me. instead I have to use firstName="ngModel". but unable to use firstName in validation
@savezmomin1647
@savezmomin1647 5 жыл бұрын
i was also having problem with that thank you brother
@danielaregawi
@danielaregawi 5 жыл бұрын
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?
@jamaluddinmondal9276
@jamaluddinmondal9276 5 жыл бұрын
Vs Code Editor by Microsoft
@SalmanManzoorGorssi
@SalmanManzoorGorssi 4 жыл бұрын
at 4:33 are you using css??
@RandomNiceThings12
@RandomNiceThings12 4 жыл бұрын
great video
@agustinbcu
@agustinbcu 5 жыл бұрын
Great video, but the way awesome t-shirt.
@jainshilpi3
@jainshilpi3 7 жыл бұрын
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"/>
@bilalafridi5326
@bilalafridi5326 7 жыл бұрын
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 ],
@bilalafridi5326
@bilalafridi5326 7 жыл бұрын
you might have solved this but it could help others.
@muralinaidu1059
@muralinaidu1059 6 жыл бұрын
even after doing this. it didnt work
@madhusudhan9096
@madhusudhan9096 6 жыл бұрын
yes its working
@annusunny
@annusunny 6 жыл бұрын
for variable #firstName use varFirstName or _firstName | In short here ngModel name and variable name should not be same.
@SzigSag
@SzigSag 6 жыл бұрын
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
@prayagparikh8020
@prayagparikh8020 3 жыл бұрын
It's showing same error for me. What's the solution?
@cvchanel4763
@cvchanel4763 4 жыл бұрын
Thank you verry much :)
@neko_senpaianimeamvedits9598
@neko_senpaianimeamvedits9598 3 жыл бұрын
Nice ❤
@hassanaguezoum3477
@hassanaguezoum3477 4 жыл бұрын
Thank you ❤
@amahrizal
@amahrizal 6 жыл бұрын
Many thanks
@srujithraoambati4042
@srujithraoambati4042 4 жыл бұрын
Sir, I got an error that displayed "no directive found with exportAs ngModel". Can you please help me out?
@lucaslemos1977
@lucaslemos1977 4 жыл бұрын
Srujith Rao Ambati in your appmodule.ts import NgModule and FormsModule, if you not imported yet
@srujithraoambati4042
@srujithraoambati4042 4 жыл бұрын
@@lucaslemos1977 I did that but still got the error
@nexopos3310
@nexopos3310 7 жыл бұрын
I got an issue... with the template variable (#formName). Returns There is no directive with "exportAs" set to "ngModel"
@greysonyee4700
@greysonyee4700 7 жыл бұрын
same issue here, both FormModule and ReactiveFormModule is imported. Please help.
@cardflopper3307
@cardflopper3307 7 жыл бұрын
don't forget the "s", it is FormsModule, not FormModule
@purshotham91
@purshotham91 6 жыл бұрын
Seriously your tutorial was very helpful for me. But you didn't mention about submit button validation. Can you help me with that?
@arjunsunny999
@arjunsunny999 4 жыл бұрын
Yoy are great.. ty,,,,,,,Where d o i get this code????
@benjaminperez6777
@benjaminperez6777 2 жыл бұрын
exelente video
@alaamoustafa7991
@alaamoustafa7991 6 жыл бұрын
you are perfect !
@cachkiemtienonlinetainha
@cachkiemtienonlinetainha 5 жыл бұрын
Thank you so much
@manishankar8688
@manishankar8688 4 жыл бұрын
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م
@علياءاسامه-ت4م 6 жыл бұрын
thanks a lot .It is awesome
@EldarKhaitov
@EldarKhaitov 6 жыл бұрын
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-pz5ks
@SureshBabu-pz5ks 5 жыл бұрын
HI Mosh, Iam getting the Error: No value accessor for form control with name: 'firstName' plz let me know how to fix
@guyr989
@guyr989 7 жыл бұрын
Great video! But how do you clean all the alerts after you 'unFoucused'? and how to add a confirm submission massage?
Routing and Navigation in Angular | Mosh
24:32
Programming with Mosh
Рет қаралды 285 М.
Directives in Angular Applications
25:13
Programming with Mosh
Рет қаралды 182 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Angular Reactive Forms - All Needed Use Cases
15:55
Monsterlessons Academy
Рет қаралды 36 М.
Angular Material Tutorial | Mosh
36:19
Programming with Mosh
Рет қаралды 265 М.
How to Make Forms in Angular REUSABLE (Advanced, 2023)
21:10
Decoded Frontend
Рет қаралды 74 М.
Reactive Form Validation in Angular: Mastering Best Practices
13:08
Monsterlessons Academy
Рет қаралды 9 М.
Reactive Forms  - The Basics
15:48
Fireship
Рет қаралды 258 М.
Deploying Angular Applications | Mosh
27:07
Programming with Mosh
Рет қаралды 126 М.
Reactive Forms in Angular - Dynamic Validation
13:24
Decoded Frontend
Рет қаралды 13 М.
Redux Tutorial - Learn Redux from Scratch
1:34:53
Programming with Mosh
Рет қаралды 1,1 МЛН
Angular Tutorial for Beginners: Learn Angular & TypeScript
2:02:42
Programming with Mosh
Рет қаралды 4,5 МЛН