Directives in Angular Applications

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • 🔥Get the COMPLETE COURSE (60% OFF - LIMITED TIME): programmingwithmosh.com/cours...
    Learn how to use directives to manipulate the DOM in your Angular apps.
    TABLE OF CONTENT
    00:00 Introduction
    00:31 ngIf
    06:43 Hidden Property
    10:08 ngSwitchCase
    16:45 ngFor
    21:04 ngFor and Change Detection
    RELATED VIDEOS
    Angular 4 Tutorial for Beginners
    • Angular Tutorial for B...
    Angular Version History
    • AngularJS vs Angular 2...
    Angular Material
    • Angular Material Tutor...
    Angular Animations
    • Angular Animations Tut...
    MY OTHER COURSES
    I have several other courses on web and mobile application development. You can find them all here:
    programmingwithmosh.com/courses
    STAY IN TOUCH
    / programmingwithmosh
    / moshhamedani

Комментарии • 72

  • @ajitsahu4291
    @ajitsahu4291 5 лет назад +6

    One of the best tutorial and presentation I ever have. Thanks

  • @ugyensingye7427
    @ugyensingye7427 3 года назад +9

    i like your explaination alot! was recommended to me by a friend, and i am also sure to recommend this playlist to anyone learning Angular.

  • @skelper99
    @skelper99 6 лет назад +8

    The best teacher by far...thanks!

  • @richardlanglois5183
    @richardlanglois5183 6 лет назад +2

    Very well presented, thanks for sharing your knowledge!

  • @saidhouwasse7507
    @saidhouwasse7507 6 лет назад +1

    Thanks for this tutorial, Really salute your efforts!

  • @bubamanjang
    @bubamanjang 6 лет назад +1

    Thank you Mosh! I appreciate you.

  • @ericwilfriedettien4603
    @ericwilfriedettien4603 6 лет назад

    Very good explanation.Thank you very much !

  • @TitoMitto
    @TitoMitto 6 лет назад +2

    I love your tutorial. They are detailed

  • @praveenrajsr2112
    @praveenrajsr2112 6 лет назад +2

    Thank you for the great Tutorial :)

  • @WebTechies82
    @WebTechies82 6 лет назад +2

    Awesome Tutorial I have learnt Directive very easily

  • @shraddhayewale1093
    @shraddhayewale1093 Год назад +1

    best explanation i ever get

  • @berkererol
    @berkererol 2 года назад

    Very clear explanation, thanks a lot Mosh.

  • @srikanthgubba
    @srikanthgubba Год назад

    I am very beginer level in Angular course and really I understood about directives in detailed manner .. thank you Mosh for giving a wonderful courses to us. also I subscribed your chanel very immediately to get more videos for next lecture.. once again Thank you very much Mosh...

  • @phitran3158
    @phitran3158 6 лет назад +2

    greate lession.. thanks.

  • @dr.faithadhiambo254
    @dr.faithadhiambo254 4 месяца назад

    Thank you so much Mosh, I know understand what directives are

  • @aoam9194
    @aoam9194 6 лет назад +1

    Such a great tutorial

  • @jokerface22
    @jokerface22 2 года назад

    Very good tutorial. Helped me a lot

  • @sohrabtaheri1025
    @sohrabtaheri1025 5 лет назад

    haji terkoondi awliiieee
    thanks mosh it was great

  • @HemantKumar-yk2jk
    @HemantKumar-yk2jk 5 лет назад

    One of the best teacher

  • @Alex-bc3xe
    @Alex-bc3xe 3 года назад

    You re the best :) so simple

  • @RaviRajput-ff5le
    @RaviRajput-ff5le 5 лет назад +48

    I saw the entire video just to see the custom directives, but you missed that part :(

    • @nourinfo
      @nourinfo 4 года назад

      ruclips.net/channel/UCpqJpOi5jduXNdaeSdtJLlQ&fbclid=IwAR2mC1uCdQDcRxHFdNFZz9kGnucLqqTazyKFr9Vax70ShtO6HHMG0s60QN8

    • @sivakumarg98
      @sivakumarg98 4 года назад +2

      Haha... It's a promotion video for mosh's angular course... I have already registered his node course... Lectures were very good especially errors debugging while doing tasks he purposely make us to do errors and correct it... u can take this course if u want ... It will be definitely helpful...! 👍

  • @kal_node
    @kal_node 4 года назад +1

    nice tutorial

  • @farhangmdc
    @farhangmdc Год назад

    Very nice explanation.

  • @miskellil4844
    @miskellil4844 6 лет назад +2

    my respect

  • @nawaz687
    @nawaz687 5 лет назад

    Super good video

  • @handlehandle12322
    @handlehandle12322 6 лет назад +2

    21:00 because the index of rows starts from 0. So the first row is numbered 0 and the 3rd row is numbered 2, which are even numbers.
    0,1,2.

    • @NitheshReddy
      @NitheshReddy 5 лет назад

      When it comes to Computer programming, 0 is treated a Even. So, in this case, 0 and 2 are even and 1 is odd.

    • @dewinchy
      @dewinchy 3 года назад

      Pretty misleading if you're a beginner, but yeah, the (EVEN) suffix is rendered if the index of that loop is treated even. The index goes from 0 to 2 in this case, so 0 and 2 are treated even. Not if the label shows an even number!

  • @blessonthomas4875
    @blessonthomas4875 3 года назад +1

    Your the coolest person in the world 😇

  • @ByongyulChoi
    @ByongyulChoi 2 года назад

    In ngSwitch example.
    I don't know if it's version issue, but the selected value is changed to the default value because the page is reloaded.

  • @HazirEmir
    @HazirEmir 6 лет назад +2

    Top

  • @sambhavsharma9661
    @sambhavsharma9661 6 лет назад +2

    got it

  • @javascript_developer
    @javascript_developer 3 года назад

    Need more details on change Detection strategy.

  • @aravindj9893
    @aravindj9893 3 года назад

    Mosh put other videos of angular course for beginners.

  • @aoam9194
    @aoam9194 6 лет назад

    I like it

  • @ppcris2905
    @ppcris2905 4 года назад

    I have noticed the play progress bar!! Great 👍

  • @johmbon
    @johmbon 2 месяца назад

    Am I missing the part where you learn about custom directives like you said in the intro? I don't find the timestamp for it

  • @sheshikanthkotte7314
    @sheshikanthkotte7314 Год назад +1

    In ngswitch case you have written *ngSwitchCase="'map'" in this case you said that we are checking whether the value is equal to map or not but the operator you used is assignment operator not ==, even though your code is working how is it possible

  • @novririzky9893
    @novririzky9893 6 лет назад

    for(i=1; i

    • @andrewpeters8357
      @andrewpeters8357 6 лет назад +5

      This code hurts to look at.

    • @jasperwes
      @jasperwes 6 лет назад +1

      printThanks() { return `very good tutorial, thanks!
      ` + printThanks(); }
      console.log(printThanks())

    • @oiux5749
      @oiux5749 6 лет назад +1

      r/badcode

    • @narutokunn
      @narutokunn 4 года назад

      while True:
      print("very good tutorial, thanks!")

  • @prernapnegi
    @prernapnegi 6 лет назад

    What are using in this styles.css file?

  • @sambhavsharma9661
    @sambhavsharma9661 6 лет назад

    i am using ngif but facing below problem. Please help me.
    compiler.es5.js:1694 Uncaught Error: Template parse errors:
    Can't bind to 'ngif' since it isn't a known property of 'div'. ("
    ]*ngif="courses.length > 0">
    List of courses
    "): ng:///AppModule/AppComponent.html@1:5
    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 ->]

  • @raghupola1
    @raghupola1 6 лет назад

    Hello Mosh,
    I have a question here, how it will look in the browser if we use hidden instead of *ngIf.
    Is it show empty space or it won’t create element on DOM

  • @FloKorp86
    @FloKorp86 5 лет назад +4

    This does NOT show how to build custome directives. Misleading intro

  • @raiseer
    @raiseer 2 года назад

    Good video, but half the content that was announced in the introduction, is not in the video :/

  • @afsanamimi3084
    @afsanamimi3084 Год назад

    when I write course in ts file it showing error

  • @lesleyshome
    @lesleyshome 4 года назад +4

    watched this video only for custom directives...missing that

  • @_qkyu
    @_qkyu 9 месяцев назад

    Why does bootstrap property not working on my project?

  • @MichaelSalo
    @MichaelSalo Год назад

    Why do we have to rename 'index' and 'even' variables. Can they be used with their original names?

  • @natiarquia
    @natiarquia 5 лет назад

    Hi, i have a question, what is the name of the extension for autocomplete coding?

  • @samighasemi3333
    @samighasemi3333 2 года назад

    👍🏻

  • @TUITKRISHNAKUMAR
    @TUITKRISHNAKUMAR 3 года назад +1

    Mosh, what do you mean by "Costly" in this context ?

    • @dewinchy
      @dewinchy 3 года назад +1

      I think he means that if the user's gonna toggle let's say a detail view and do that toggling maybe 2-3 times and that toggling cost each time 1-2 seconds, because the whole detail view must be built up each time, it can be better to let that part in the DOM and just toggle the hidden attribute. Doing so will lower the cost regarding DOM manipulation overhead. The browser rendering of course happens each time, but that's not the time consuming part of it.

  • @SandyUndefinedVlogs
    @SandyUndefinedVlogs 6 лет назад

    actually, i m having some problem with splice i think so, it remove like the values in stack

  • @Jubinmail
    @Jubinmail 3 года назад +1

    Why does Angular have a billion ways to do the same thing?

  • @bilalnizamani7447
    @bilalnizamani7447 4 года назад

    can anyone tell me , how to add bootstrap link and which?

  • @bhargavk8746
    @bhargavk8746 6 лет назад

    i want to repeat the same line for 3 times how to do that using ngFor

  • @AlessioCollura
    @AlessioCollura 6 лет назад

    I like this tutorial, but adding stiffed logic inside a div to reference a dom element "by id", because we are hip and don't want to manipulate the dom, is the most stupid thing that angular is forcing on us.

  • @handlehandle12322
    @handlehandle12322 6 лет назад

    Too many bloody ads in the video!

  • @akab211
    @akab211 4 года назад

    dumb elements :D

  • @VishalKumar-kr9me
    @VishalKumar-kr9me 4 года назад +1

    Disliking becoz you wasted my time. I watched entire video for custom directives.

  • @fermisurface2616
    @fermisurface2616 Год назад

    JavaScript, and by extension Typescript, doesn't have lists natively.