Angular Tutorial - 12 - ngIf Directive

  Рет қаралды 448,346

Codevolution

Codevolution

Күн бұрын

Пікірлер
@songlee8456
@songlee8456 7 жыл бұрын
Ok ok another 5 🌟. That's all for tonight 2am. I'm addicted to your tutorial.
@bhimanna473
@bhimanna473 3 жыл бұрын
I have been watching many tutorials But yours was cool, straightforward within time-frame, easy to understand because of simpler examples
@chassisboy1
@chassisboy1 6 жыл бұрын
Man you are really great.... This is an perfect tutorial for an Angular Beginner.... Good command over language and clear in concepts.... I'm too addicted to your tutorial....
@John-Weak
@John-Weak 5 жыл бұрын
its ngIf not ngif,do not repeat my mistake guys :)
@irene693
@irene693 7 жыл бұрын
Your tutorials are very straightforward and easy to understand, thanks so much.
@mohdmuzaffarahmed4923
@mohdmuzaffarahmed4923 4 жыл бұрын
The way u explain is outstanding brother
@martinkarugaba
@martinkarugaba 5 жыл бұрын
Your tutorials are the best.
@niteshraut1430
@niteshraut1430 4 жыл бұрын
I don't think display:none; will show up in the DOM but visibility:hidden is present in the DOM but not displayed. 1:50
@PatrickvonMassow
@PatrickvonMassow 6 жыл бұрын
Your tutorial is very helpful and the explanations are well-structured and straight forward! One little thing I noticed in your videos: Your audio is often distorted when you speak louder. It would help to reduce the input sensitivity of your mic. The loss in volume can easily be compensated by applying normalization plus dynamic compression of your audio (which are steps you should always apply, regardless of this problem).
@inhquangtien3844
@inhquangtien3844 6 жыл бұрын
Your tutorials are very straightforward and easy to understand. Thank you very much!
@NoName-vw9hl
@NoName-vw9hl 4 жыл бұрын
if u are listening to the video for the first time , set the playback speed to normal to listen the concepts initially and once done to revise the concepts set the playback speed to 1.25 and listen to video.
@pascalsolutions6158
@pascalsolutions6158 5 жыл бұрын
This man is a genius
@bittooaggarwal5776
@bittooaggarwal5776 3 жыл бұрын
Hello World Hello Universe Vishwas, the above code works as the same you explained. Is there any benefit of using ng-template?
@prabhakargautam6045
@prabhakargautam6045 Жыл бұрын
tq its helpfull
@nikunjgurjar7149
@nikunjgurjar7149 4 жыл бұрын
It is really helpful for Beginners. Great job!
@nikunjgurjar7149
@nikunjgurjar7149 4 жыл бұрын
You are explaining awesome! Thanks a lot
@muhammadidrees6650
@muhammadidrees6650 6 жыл бұрын
you are legend mate, love the way you explain, heaps thanks
@AmitKumar-yd1cp
@AmitKumar-yd1cp 6 жыл бұрын
Thank you for telling how to do "if else" using *ngIf ..especially @this video->06:45. Will you please also tell, how to do "if elseif else" ..kind of situation?. Thank you in anticipation
@nehalneki1511
@nehalneki1511 4 жыл бұрын
by using ternary operators
@youssefbaaziz3673
@youssefbaaziz3673 3 жыл бұрын
use ngswitch , change the variable values in the TS files
@MajiDJaki
@MajiDJaki 6 жыл бұрын
oh i wish i could never sleep. thanks a lot man. Amazing
@tahaiftekhar6466
@tahaiftekhar6466 6 жыл бұрын
Great! But I think I'll do this Condition True Condition False
@jackabrams5859
@jackabrams5859 5 жыл бұрын
That looks a lot better. Does it still work?
@jahiruljitu3255
@jahiruljitu3255 3 жыл бұрын
@@jackabrams5859 Works but not good for practices.
@tshegofatsothejane2345
@tshegofatsothejane2345 3 жыл бұрын
Simple and clear. Thank you.
@ماياالقدور
@ماياالقدور 5 жыл бұрын
it's the first time i see the second way it's amazing
@J0hn1ee
@J0hn1ee 6 жыл бұрын
I like the way you teach thanks a lot for your effort
@akshayjaisinghani2039
@akshayjaisinghani2039 4 жыл бұрын
Please provide the keyboard shortcuts you use while editing... I wonder how you produce the codes in just a click, your overall lectures are great. Thanks in advance
@sudhir600
@sudhir600 5 жыл бұрын
is there no option like ng-if, ng-else-if, ng-else just like v-if, v-else-if and v-else in vuejs ?
@pratibhakshirsagar7476
@pratibhakshirsagar7476 6 жыл бұрын
Hello sir, Its Very nice explanation clean n neat...Thank you for this nice videos
@vinaykumar-qe4zx
@vinaykumar-qe4zx 5 жыл бұрын
qualitative teaching
@sufyanvictori
@sufyanvictori 2 жыл бұрын
NgIf condition for two components click one components work other stop ...... how it works
@vipulhasija5692
@vipulhasija5692 4 жыл бұрын
Do we have a nested if or else if in angular..?
@keerthanaananth1074
@keerthanaananth1074 4 жыл бұрын
i have a doubt i cant able to run my code if i run only app.html file is running inside my app i created a components file test but how to run test components
@sayakbanerjee9990
@sayakbanerjee9990 Жыл бұрын
if u r getting error in then statement declare displayName as public
@justelaima2896
@justelaima2896 Жыл бұрын
@amandixit2389
@amandixit2389 4 жыл бұрын
can we use something displayname:boolean=true;?????????
@kirthimedia5235
@kirthimedia5235 4 жыл бұрын
I've updated Angular CLi.. still not able to run If Else Directive.. but able to execute same code on some online platform.. Any help would be highly appreciated..
@sahilarora273
@sahilarora273 6 жыл бұрын
hi , thanks for your tutorial can you show it how we can do with button click event ?
@ashutoshojha368
@ashutoshojha368 2 жыл бұрын
Can you please share the code of the programs which you have generated in this program for practice purpose
@Stupid_Common_Man_suraj
@Stupid_Common_Man_suraj 4 жыл бұрын
hello bro ,what if we want to nest one else in anther .thanks in advance...
@nitindelhiful
@nitindelhiful 6 жыл бұрын
the concepts are so easily described that i doubt/wonder if some information is missing :-)
@ruma9338012757
@ruma9338012757 6 жыл бұрын
can you explain the example you gave ngif="true/false" is how different from css property display ="none"
@dheerajmishra7182
@dheerajmishra7182 5 жыл бұрын
Can we add multiple then block?
@nehamaha13
@nehamaha13 6 жыл бұрын
Hey, then is not working for me. else is working but not then. Can you please help me out
@amitmaheshwari8293
@amitmaheshwari8293 6 жыл бұрын
Just ensure that the displayName variable value is not in inverted commas.
@achmadrf1243
@achmadrf1243 4 жыл бұрын
i have interger variabel, i want a content show only when my variabel has integer data(not spesific data). how to code it? thanks
@adesinaoladimeji2995
@adesinaoladimeji2995 3 жыл бұрын
you are fantastic
@mhaesh
@mhaesh 6 жыл бұрын
Getting below error. Template parse errors: Can't bind to 'ngif' since it isn't a known property of 'h2'. (" ]*ngif=true> Madhusudhan "): ng:///AppModule/Test1Component.html@1:6 Property binding ngif not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". (" [ERROR ->] Madhusudhan "): ng:///AppModule/Test1Component.html@1:2 at syntaxError (compiler.js:1021) at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830) at
@ruudhermans4243
@ruudhermans4243 5 жыл бұрын
It's ngIf not ngif.
@robeeeeen
@robeeeeen 5 жыл бұрын
🌟 🌟 🌟 🌟 🌟 Excellent!
@natashajanice6242
@natashajanice6242 7 жыл бұрын
Is 'else if' supported?
@acuteclub7381
@acuteclub7381 6 жыл бұрын
well explained...thanks
@vvntechnologiespvtltd6843
@vvntechnologiespvtltd6843 6 жыл бұрын
very helpful tutorial..thanks alot...plz provide all these videos CODE link
@estherwashu4783
@estherwashu4783 5 жыл бұрын
so helpful thankyou
@birajaprasad
@birajaprasad 5 жыл бұрын
sir, what about reusable component
@ruudhermans4243
@ruudhermans4243 5 жыл бұрын
Using CLI version 8.0.4 it seems that you must have declared the ng-template before you can use it.
@nidhithakur6636
@nidhithakur6636 3 жыл бұрын
thank you
@moh_has99
@moh_has99 6 жыл бұрын
how to use *ngIf to check if array empty or not !?
@richardpadua3928
@richardpadua3928 4 жыл бұрын
i think the first method "inline" is easier..ill go with that
@kathiravant1668
@kathiravant1668 7 жыл бұрын
thank u its pretty clear
@ghani.afridi
@ghani.afridi 7 жыл бұрын
Can I use two way binding with it and have a button to toggle display name on and off
@Skaxarrat
@Skaxarrat 6 жыл бұрын
Yes. Just create a method that toggles a boolean on and off and activate it when you click that button.
@ahoussimea7164
@ahoussimea7164 6 жыл бұрын
use *ngIf
@lexiaontube
@lexiaontube 6 жыл бұрын
THX !!!! great tutorials !!!!
@mostwanted2000
@mostwanted2000 7 жыл бұрын
very good tutorial but so blurry. why you didn't record it in 1080?
@songlee8456
@songlee8456 6 жыл бұрын
Most Wanted ...check your setting. The problem is from your side. His videos are crystal clear
@natetolbert3671
@natetolbert3671 5 жыл бұрын
Can you not just attach the ref variable to the alternate h2 element instead of wrapping it in a directive. Seems like that would make things simpler. Then again, I haven't finished the video, so I may be missing something...
@alihosseinkhani2671
@alihosseinkhani2671 3 жыл бұрын
Ty
@mahmoudabdelsattar8860
@mahmoudabdelsattar8860 6 жыл бұрын
Module not found: Error: Can't resolve './
@rajatsethi6000
@rajatsethi6000 6 жыл бұрын
Replace templateUrl to template
@modgenesis3868
@modgenesis3868 6 жыл бұрын
@RAJA SETHI Thanks
@syedsameer382
@syedsameer382 5 жыл бұрын
please create udemy turorial...
@RahulSingh-ex2sm
@RahulSingh-ex2sm 5 жыл бұрын
Awesome!
@yuvarajnagu7243
@yuvarajnagu7243 4 жыл бұрын
Where 11 th video
@deenriqo
@deenriqo 6 жыл бұрын
This is a good tutorial. But Angular made this too complicated. Look at how its done in LitElement or React . Much easier.
@spiderous
@spiderous 6 жыл бұрын
Why it has to be so much complicated... I used to code in raw JS and everything was a lot of easier than in these dumb frameworks...
@Tedendityqdarr-k6b
@Tedendityqdarr-k6b 2 ай бұрын
12:17
@rameshd8436
@rameshd8436 2 жыл бұрын
Dint read document
@jeremylowrey7820
@jeremylowrey7820 5 жыл бұрын
This *ngIf syntax of Angular makes me cringe! I'm coming from Meteor and Vue which have elegant if/else-if/else directives (I'm being forced to switch to Angular at my job). I still haven't come across an example that includes else-if and I'm afraid it doesn't exist. Looks like you must nest another if/else! This whole idea of making a inner template per case is outrageous for overhead and readability in my opinion. This is a modern day GOTO statement which is not a good thing especially when you lose else-if at the same scope of the if/else.
@SahilSingh-hc4fk
@SahilSingh-hc4fk 5 жыл бұрын
trutheeeee
@_slier
@_slier 6 жыл бұрын
unnecessary verbose..damn..im being forced to used angular and hated it
@ai.aspirations
@ai.aspirations 6 жыл бұрын
magnefique
Angular Tutorial - 13 - ngSwitch Directive
2:38
Codevolution
Рет қаралды 304 М.
Angular Tutorial - 23 - Routing and Navigation
12:51
Codevolution
Рет қаралды 934 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Angular Tutorial - 14 - ngFor Directive
4:37
Codevolution
Рет қаралды 306 М.
Angular Tutorial - 15 - Component Interaction
9:33
Codevolution
Рет қаралды 564 М.
Angular Tutorial - 18 - Dependency Injection
9:25
Codevolution
Рет қаралды 528 М.
Angular Tutorial - 19 - Using a Service
8:39
Codevolution
Рет қаралды 530 М.
Directives in Angular Applications
25:13
Programming with Mosh
Рет қаралды 182 М.
*ngFor in Angular | For loop in Angular | Angular Tutorial
13:35
Angular Tutorial - 25 - Route Parameters
9:56
Codevolution
Рет қаралды 380 М.
Angular Tutorial - 5 - Interpolation
8:08
Codevolution
Рет қаралды 656 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН