Learn Angular A-Z: Complete Tutorial for Beginners

Поділитися
Вставка
  • Опубліковано 5 сер 2024
  • It's not an exaggeration to say Angular changed the way we build web applications. Learn the A to Z of Angular in this comprehensive four-hour video course. ► Download unlimited photos, fonts, and templates with Envato Elements: elements.envato.com/?...
    Angular is a larger framework than React or Vue, providing more features and built-in capabilities out of the box. But that makes it a bit more difficult to get started.
    In this course, you’ll learn everything you need to get started writing applications with Angular. We’ll start at the very beginning: you’ll install the Angular command-line tools, and we’ll create a new project together.
    You’ll learn how to display data with Angular’s directives and templating syntax, as well as binding data to properties, attributes, and handling events. We’ll then dive into components, and you’ll learn how to create components that accept input and provide output. You’ll also learn how to set up two-way binding and manipulate styles within your components.
    Later, we’ll look at some of the services and concepts that Angular uses, such as dependency injection, modules, and observables. You’ll learn how to create and use modules to organize your application, handle and validate form input with reactive forms, and build single-page applications with Angular’s router. Here's the course structure:
    1. Introduction
    00:00:00 1.1 Introduction
    2. Getting Started
    00:01:52 2.1 Installing and Using the Angular CLI
    00:15:22 2.2 Creating a Data Model
    00:22:46 2.3 Iterating Arrays
    00:30:13 2.4 Making Decisions
    00:41:46 2.5 Binding Data to Properties and Attributes
    00:47:54 2.6 Binding Events
    00:54:58 2.7 Using ngModel to Bind Values to Form Controls
    01:05:02 2.8 Listening for Changes to ngModel Values
    01:12:43 2.9 Using Getters to Filter and Provide Data
    3. Creating Custom Components
    01:18:14 3.1 Creating a Component With Input
    01:27:24 3.2 Outputing Information From a Component
    01:33:17 3.3 Initializing Component Functionality
    01:41:02 3.4 Setting Up Two-Way Binding
    01:48:33 3.5 Practicing Two-Way Binding
    01:55:30 3.6 Styling Components
    4. Using Angular's Services
    02:01:29 4.1 Using Observables to Create an Event Bus
    02:15:30 4.2 Refactoring the WishListItem Component
    02:19:24 4.3 Injecting Dependencies
    02:26:17 4.4 Issuing HTTP Requests
    02:36:05 4.5 Providing Options for HTTP Requests
    02:43:30 4.6 Handling Errors for HTTP Requests
    5. Using Modules
    02:51:42 5.1 Creating Modules
    03:01:19 5.2 Exporting Single Components
    6. Working With Reactive Forms
    03:06:02 6.1 Introducing Reactive Forms
    03:14:39 6.2 Creating Control Groups
    03:20:02 6.3 Validating Reactive Forms
    03:33:05 6.4 Writing Custom Validators
    7. Using Angular's Router
    03:42:31 7.1 Defining Routes
    03:50:49 7.2 Handling "Not Found" Pages
    03:56:19 7.3 Navigating to Routes
    04:03:28 7.4 Providing Data to Routes
    04:10:17 7.5 Using Route Parameters
    8. Conclusion
    04:20:05 8.1 Conclusion
    Useful Links:
    • Course Source Files: github.com/jwmcpeak/Angular-F...
    • Angular: angular.io/
    • Node.js: nodejs.org/
    • Visual Studio Code: code.visualstudio.com/
    We have a lot to cover, so let’s get started!
    Read free Angular tutorials on Envato Tuts+: code.tutsplus.com/categories/...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Envato Tuts+
    Discover free how-to tutorials and online courses. Design a logo, create a website, build an app, or learn a new skill: tutsplus.com/?...
    Envato Elements
    All the creative assets you need under one subscription. Customize your project by adding unique photos, fonts, graphics, and themes.
    ► Download Unlimited Stock Photos, Fonts & Templates with Envato Elements: elements.envato.com/?...
    ► Subscribe to Envato Tuts+ on UA-cam: / tutsplus
    ► Follow Envato Tuts+ on Twitter: / envato
    ► Follow Envato on Facebook: / envato
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

КОМЕНТАРІ • 126

  • @sauravsingh471
    @sauravsingh471 15 днів тому +2

    Thanks, I completed the whole video, and I was coding along side you, To anyone who is thinking of watching this , you should definitely watch it, although a few things have changed but the remaining 85% of the things is still the same

  • @abdelrahmanmahmoud4995
    @abdelrahmanmahmoud4995 4 місяці тому +4

    One of the best Angular tutorials, I really like how you simplify everything

  • @patriciebakosova4878
    @patriciebakosova4878 9 місяців тому +38

    Thank you Jeremy, for this absolutely fantastic video. I just started work in Angular as a junior dev and it feels very overwhelming as I only learned React. I'm just half way through your video and it's helping me so much already! I watched few other tutorials, but this is by far the simplest explanation what you can get while building. And it's actually the newest what you can get as well. Plus it's in native english and your voice is a pleasure to listen to! Thanks again, great work.

  • @Kestrel1971
    @Kestrel1971 2 місяці тому +6

    Fantastic video. I've spent the last 20 years working on server-side code with desktop front-ends (WinForms and WPF). I recently switched projects, working with ASP.NET Core and an Angular front-end. This is, by far, the best introduction to Angular I've watched.

    • @wangyuheng1833
      @wangyuheng1833 22 дні тому

      same, my project is frontend empowered by angular and backend supported by .net, which provide more scalibility.

  • @SamoPlaysMinecraft
    @SamoPlaysMinecraft 3 місяці тому +9

    Give this man 100,000,000,000!!!

  • @soukainaj
    @soukainaj 3 місяці тому +2

    Thanks for the tutorial! Your way of teaching is amazing.

  • @larryking1153
    @larryking1153 3 місяці тому +1

    Great tutorial....One of the best Angular tutorials I've seen

  • @kxhakol
    @kxhakol 3 місяці тому +1

    hats off, you have a gift for explaining things

  • @Mark-nm9sm
    @Mark-nm9sm 9 місяців тому +58

    Job requires angular but the more i watch this the more i love react 🤣

    • @MrChrizzilla
      @MrChrizzilla 3 місяці тому +2

      Hard agree. Bi-directional binding of properties between parent and child is going to be a nightmare to debug 😱
      Having to deal with html "template" files rather than JSX/TSX is just gross.
      I also don't like being forced into writing components in an OOP way with classes. React moving to functional components and hooks was the best thing that could have happened to it. I imagine this new job is going to be HOC hell, like React originally was.

    • @victortarus2814
      @victortarus2814 3 місяці тому +1

      same boat

    • @hassanmostafa4070
      @hassanmostafa4070 2 місяці тому

      Agree 👍👍👍💯

  • @gajananfetare4901
    @gajananfetare4901 11 місяців тому +3

    Very professional it helps me a lot

  • @riclaq4437
    @riclaq4437 4 місяці тому +3

    Monster of a tutorial I think it's gonna help me a lot for my internship :)

  • @firsthomebuyer
    @firsthomebuyer 11 місяців тому +1

    Thank you Envato!

  • @legend225dev
    @legend225dev День тому

    Excellent course about AngularJs. I have worked with reactjs, but for separation of concern and build-in feature provide by angularJs. I have decided to choose angularJs to build a web application for a customer.

  • @remoonalmaghout9621
    @remoonalmaghout9621 8 місяців тому

    Thanks for a really great work!

  • @nouchance
    @nouchance 11 місяців тому +1

    THANKS Envato TUTS!

  • @user-qd5ho4jj4t
    @user-qd5ho4jj4t 5 місяців тому

    thank u, really great work, best tutorial

  • @jackiechen9098
    @jackiechen9098 9 місяців тому +4

    This is the best Angular tutorial! Thank you so much

  • @JenniferThomas-wz2qu
    @JenniferThomas-wz2qu 4 місяці тому

    Thanks for this very detailed tutorial

  • @bemaxng4676
    @bemaxng4676 11 місяців тому +25

    Wouldn't it be nice if we all liked this great Tutorial 😊

  • @anzaniradali1706
    @anzaniradali1706 9 місяців тому +5

    The best thing about this tutorial is that your voice is perfect for listening for hours 😭

  • @atherghuftar1578
    @atherghuftar1578 4 місяці тому

    thank you, you made it very easy.

  • @trungkienle1431
    @trungkienle1431 8 місяців тому +1

    worth every second!!!!!

  • @user-mh4lq5ce6u
    @user-mh4lq5ce6u 10 місяців тому +1

    absolute best bro

  • @DevGeniusHub1
    @DevGeniusHub1 5 місяців тому

    Nice, good explanation! 👍

  • @eljana123
    @eljana123 11 місяців тому +1

    Thank youuuu 😊😊

  • @Lyra35319
    @Lyra35319 15 днів тому

    thank you so much,good video

  • @Mark-nm9sm
    @Mark-nm9sm 9 місяців тому +6

    Amazing tutorial, after finishing it , angular doesnt look that annoying anymore

  • @CristinadeKlerk
    @CristinadeKlerk Місяць тому +1

    In order to run this project in angular 17+, just initialize your project without standalone using
    ng new wishlist --no-standalone
    instead of ng new wishlist

  • @zNeoDev
    @zNeoDev 8 місяців тому +4

    Can't believe that I learned Angular in just a week thanks to this video.

  • @vladimir_dev
    @vladimir_dev 9 місяців тому +7

    Great tutorial... What are the chances of getting one (or an update to this one) for Angular 17 and Signals when it comes out? :)

  • @DrTatra
    @DrTatra Місяць тому

    thank you so much

  • @Snegge202
    @Snegge202 10 місяців тому +1

    is there a reason to not use ng generate component to add your components?

  • @slin3232
    @slin3232 8 місяців тому +26

    Angular 17 changed a few things (no modules by default), so this tutorial needs some minor updates I guess.

    • @user-ee1hg
      @user-ee1hg 3 місяці тому

      "ng new appname --no-standalone" use this command for setting up the environment. now you'll have the setup environment with module.ts file

  • @DownShut
    @DownShut 10 місяців тому +9

    Thank you for this great tutorial. I have question, why you use "let" to define all the variables? I think use const will be better in some cases.

  • @tonykalajo6634
    @tonykalajo6634 5 місяців тому +1

    The best tutorial online.. plz let us know if you have a channel, dont mind even paying for any subscription.

  • @MicheleMoodispaugh
    @MicheleMoodispaugh 9 місяців тому

    cool video)

  • @petermeredith8698
    @petermeredith8698 6 місяців тому +7

    I just worked through the entire video and didn't have a single issue where my code didn't work outside of my mistakes. Just make sure you're using angular 16 and not whatever is latest (17 right now).

  • @ShaggyRobot
    @ShaggyRobot 9 місяців тому +2

    You sound really nice, reminded me a bit of narrator from Stanley Parable :)

  • @mrtn5882
    @mrtn5882 4 місяці тому +1

    Is there a full-blown course by Jeremy that goes beyond these initial four hours? I'd happily pay to get access to that, in case it exists.

  • @omarwasfi
    @omarwasfi 4 місяці тому

    thanks

  • @Razes9ooo474lO4
    @Razes9ooo474lO4 2 місяці тому

    Subscribed from india...

  • @inakaboyz
    @inakaboyz 8 місяців тому +1

    whats the version of angular youre using?

  • @kingchrisbreezy
    @kingchrisbreezy 7 місяців тому +1

    i'm having some trouble to generate app.module.ts file, what supose to be? help please

  • @DH-jw4iy
    @DH-jw4iy 10 місяців тому +8

    Thank you sir for this great tutorial.
    Do you have or do you plan to create the next level Angular course?

    • @DownShut
      @DownShut 10 місяців тому +1

      I agree. The next level of Angular course will be awesome.

  • @smrsgv
    @smrsgv 9 місяців тому +9

    Thanks for a really great work!
    Can you share the settings and extensions you use for VS Code?

  • @h.t.8812
    @h.t.8812 7 місяців тому

    I love the animation in the beginning how do y'all did this?!? straight up dragging stuff and setting their time and position? animator where r u

  • @mypreciouz5634
    @mypreciouz5634 9 місяців тому +4

    At 3:00:43 when i export the WishService module like you do in the video my app crashes and ı get 'WishService does not appear to be an ngModule error. However if I don't export it everything works fine. Why is that the case? I am confused.

    • @blue-jk2qu
      @blue-jk2qu 7 місяців тому

      In WishModule, WishService needs to be listed in the 'providers' array:
      @NgModule({
      declarations: [
      WishListComponent,
      AddWishFormComponent,
      WishFilterComponent,
      WishListItemComponent
      ],
      imports: [
      CommonModule,
      FormsModule,
      HttpClientModule,
      ],
      exports: [
      WishListComponent,
      AddWishFormComponent,
      WishFilterComponent,
      WishListItemComponent,
      ],
      providers: [
      WishService
      ]
      })
      export class WishModule { }

  • @stermangor
    @stermangor 10 місяців тому +1

    What color theme is this? anyone knows maybe ? i mean the same effect in *ngIf =" ......."

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx 11 місяців тому +2

    let's go first time learning angular

  • @darkoplax7688
    @darkoplax7688 8 місяців тому +6

    this video made me realize , how bad angular is ... ain't no way you have to write all that boilerplate and overcomplicate everything ; react and frameworks associated with it do everything done here so much easier and you gain insane amount of time
    ty for the tutorial , i wanted to understand how angular works and i got a good idea but no way i'm using this on my small projects ; think using angular is only worth it if ur being paid to work on a huge project

  • @independentthinker4881
    @independentthinker4881 3 місяці тому +2

    Great tutorial but badly needs to be updated to the a latest versions of node and angular as they have some pretty big changes that break this tutorial.

  • @ismailbakhach8990
    @ismailbakhach8990 6 місяців тому

    how can i make my classes implements OnInit by default when i generate a components ?

  • @user-mh4lq5ce6u
    @user-mh4lq5ce6u 10 місяців тому +4

    bro needs oscar

  • @BR50Kab
    @BR50Kab 2 місяці тому

    some issues with not finding the module due to not having a baseUrl set, after setting this to ./src and removing src from the import location this worked. Probably also coul have used .src/etc in the import

  • @carlogbossou9253
    @carlogbossou9253 10 місяців тому +1

    Hello sir, thank you very much for this tutorial. I have question. For implementation of ouput directive, why you used parentheses for (addWish) and (filter) but you used brackets for [wishes] ??? Excuses my english, I'm french speaker. Thank you.

    • @norepeato
      @norepeato 9 місяців тому +1

      One type of parentheses is for output and the other one for input

  • @user-lm5tr3zz9x
    @user-lm5tr3zz9x 5 місяців тому

    I encountered NG0100: ExpressionChangedAfterItHasBeenChecked in 4.1 Using Observables. How to fix this?

  • @SaiDanushTV
    @SaiDanushTV Місяць тому

    Before I start with this video is there any pre-requisite that I need to complete?

  • @kekiir
    @kekiir 4 місяці тому

    28:12 how did you do that paste with all of the stuffs?

  • @h.t.8812
    @h.t.8812 7 місяців тому

    I'm at 6:55 it asked me if I want to enable server-side rendering and static site generation, should I have said yes? I said no

  • @codeavecwinner
    @codeavecwinner 11 місяців тому +3

    First comment. Worth a trophy

  • @migueloviedo3625
    @migueloviedo3625 8 місяців тому +3

    You truly deserve the $100,000,000. Thank you.

  • @denindenial
    @denindenial 5 місяців тому

    Awesome tutorial! Thank you

  • @unknownworld9815
    @unknownworld9815 6 місяців тому

    is there practice project with this video tutorial
    ?

  • @chickachickachicka
    @chickachickachicka 9 місяців тому +29

    ..it might be helpful to mention SOMEWHERE the angular version you're using - so that I could setup the right project number - cause as of this writing - 10 minutes into the video and Angular 17 doesnt have the app.module file. so now im stuck. Also the CLI asked me about server side rendering and I didnt know whether to choose yes or no.

    • @ciaochrystusa4778
      @ciaochrystusa4778 8 місяців тому

      This is 16.2, reinstall Angular for this tutorial

    • @Empyrean629
      @Empyrean629 8 місяців тому +1

      Type the command for installing angular the add @16.0.0 at end then you will good to go.

    • @Aeris-Xu
      @Aeris-Xu 7 місяців тому

      So the version 17 has really changed a lot, hasn’t it?

    • @h.t.8812
      @h.t.8812 7 місяців тому +1

      I had the same issues, also I had to remake the folder of the project to be able to add a module file 1 hour into the tutorial and now there's new problems

    • @pyjamaprince
      @pyjamaprince 6 місяців тому

      ​@Aeris-Xu it has and I cant find ant tutorials for it. This is frustrating.

  • @legionsman7476
    @legionsman7476 8 місяців тому +5

    What version of angular is being used in this tutorial?

  • @nareshkumar894
    @nareshkumar894 5 місяців тому

    What is the Angular version used in this tutorial???

  • @kmonish9119
    @kmonish9119 6 місяців тому +5

    For someone, who is starting this when the @angular/cli is 17 or more, downgrade the @angular/cli version to 16. You can do this by the following command:
    npm i @angular/cli@16.1.0
    @Envato Tuts+ - could you help what could be the issue with version 17. The components.module.ts is not available when we create a new angular project. Thanks :)

  • @apoorvalandge2687
    @apoorvalandge2687 14 днів тому

    Does the tutorial cover State management ngrx?

  • @matthewkk5087
    @matthewkk5087 6 місяців тому

    I like your theme can you tell me which one of is it ?

  • @user-pl4hj1ig2c
    @user-pl4hj1ig2c 6 місяців тому

    Hello,
    Can you please explain how to got bootstrap link in index.html at 23:55 in the vedio.

  • @ismailbakhach8990
    @ismailbakhach8990 6 місяців тому

    what version is this 16 ?

  • @kekiir
    @kekiir 4 місяці тому

    28:09 how did you paste that markup???

  • @doublebeefstew
    @doublebeefstew 7 місяців тому +1

    3:56:58
    route table
    router link

  • @kevin-howard
    @kevin-howard 4 місяці тому

    What's the vscode theme?

  • @KakdeG
    @KakdeG 9 місяців тому

    👌

  • @kekiir
    @kekiir 4 місяці тому

    Some one pls tell me, how he is doing this: 28:12?

  • @adimardev1550
    @adimardev1550 10 місяців тому

    is this Angular 16?

  • @rayenmerghmi5664
    @rayenmerghmi5664 18 годин тому

    01:12:43

  • @krasser650
    @krasser650 8 місяців тому

    It's just a holiday!

  • @kingchrisbreezy
    @kingchrisbreezy 7 місяців тому +1

    - - no-standalon

  • @SRIVENKATESHR-qn1lp
    @SRIVENKATESHR-qn1lp 3 місяці тому +2

    25:40
    In the latest version of Angular v17, built-in for loop is updated. Below is the syntax ,

    @for (item of items; track $index) {
    {{item.wishText}}

    }

  • @shortscut7614
    @shortscut7614 21 день тому

    28:35

  • @riclaq4437
    @riclaq4437 4 місяці тому

    3:07:12 the what now

  • @BR50Kab
    @BR50Kab 3 місяці тому

    no ng command (not recognized) reinstalled node js but still no ng

    • @MirageDreamer550
      @MirageDreamer550 3 місяці тому

      you probably installed currently newest version of node that doesnt support angular. Try installing the version he did.

    • @BR50Kab
      @BR50Kab 2 місяці тому

      @@MirageDreamer550 Thanks, reinstalled node.js with chocolately and now not only ng is not recognized but npm is also an unknown command
      i di have a working environment some years ago with a basic pagewith angular in the browser

    • @BR50Kab
      @BR50Kab 2 місяці тому

      @@MirageDreamer550 Thanks again, found it after several reinstall attempts, linking etc. You HAVE to install with admin privs (elevated) as well and ng will work. Looks like i had a %PATH% issue. Also ran ino the problem that the node version has to be an even number, fnm didnt help but i was able to install using chocolatey

  • @jaygitonga2026
    @jaygitonga2026 5 місяців тому

    I am stuck at 1:57:15 . I get this error when trying to use the ngClass directive : NG8002: Can't bind to 'ngClass' since it isn't a known property of 'label'.
    SOLUTION:
    In Angular 17 it seems like using ngClass directive in a label causes this unexpected behavior. Anyway , the solution I found requires you to use the class binding directly in labels If you only need to apply a single CSS class conditionally:
    Anyway, I still push on, Angular looks interesting!

  • @erzascarlet2145
    @erzascarlet2145 2 місяці тому

    Is it just me or is there something about the way he says $100,000,000,000?

  • @h.t.8812
    @h.t.8812 7 місяців тому +1

    next roadblock at 17:56 I don't have an app.module.ts file :/ I'll keep going tho, just pretend this didn't happen lol

    • @sameeryadav40
      @sameeryadav40 7 місяців тому

      You are using Angular 17...downgrade to 16

    • @princechangani5302
      @princechangani5302 6 місяців тому

      @@sameeryadav40 can you specifies which angular extension he is using

    • @kmonish9119
      @kmonish9119 6 місяців тому

      please do this npm i @angular/cli@16.1.0

    • @js-fullstack-dev
      @js-fullstack-dev 5 місяців тому

      Why downgrade? Just use "ng new test --standalone false"

    • @quangle9178
      @quangle9178 5 місяців тому

      @@js-fullstack-dev or maybe ng new --no-standalone