Angular Tutorial - 17 - Services

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 68

  • @codebox7741
    @codebox7741 2 ปีที่แล้ว +8

    I'm impressed on how things flow from one video to the next. Very well done!

  • @nestieyt
    @nestieyt 5 ปีที่แล้ว +4

    If you use *ngFor for tag, code should be :
    content
    content2
    ...
    ...
    This is wrong usage. True usage, you should use *ngFor for tag, and code should be:
    content
    content
    content
    ...

    • @maxk.2076
      @maxk.2076 4 ปีที่แล้ว

      +1 This is true!

  • @chandanadas7860
    @chandanadas7860 4 ปีที่แล้ว +1

    your whole angular series ,its just soo squeaky clean explanation .very helpful for beginner and interview purpose.

  • @dgen77
    @dgen77 4 ปีที่แล้ว +6

    Thank you my Indian teacher, keep up the good work!

  • @soumyajitdey5720
    @soumyajitdey5720 ปีที่แล้ว +3

    Just a question. Why don't we make use of the parent-child component interaction method for this specific use case? For example, we can have a EmployeeComponent which will hold the data and add two different child components (EmployeeDetail, EmployeeList) and then pass the data. I believe that is how React does it by sending the props.

    • @mukeshmanral1327
      @mukeshmanral1327 11 หลายเดือนก่อน +1

      Nested Hierarchy: If your application has a deep component hierarchy, passing data through multiple levels of components using @Input and @Output can become cumbersome and result in complex and less maintainable code.
      Tight Coupling: Components become tightly coupled, making it harder to reuse them in different parts of the application.
      Service based approach-Loose Coupling: Services provide a way to decouple components. Components don't need to know about each other; they only need to know about the service. This promotes a more modular and maintainable codebase.
      Easier to Scale: When dealing with complex data sharing scenarios or scenarios where components are not directly related, services provide a scalable solution. Services can act as a centralized place for managing and sharing data across multiple components.

  • @misy_code
    @misy_code 2 ปีที่แล้ว +2

    Thanks is not enough to say! You are simply superb sir and so far you might had saved many lives, like mine!!! Thank you!!!!Thanks a lot..!!!

  • @medbolm4230
    @medbolm4230 5 ปีที่แล้ว +9

    i'm so lucky to find a tutoriel like this, thank you Professor.

  • @terciosardinha3235
    @terciosardinha3235 5 ปีที่แล้ว +9

    Fantastic. Such a great teacher!

  • @anandtiwari4723
    @anandtiwari4723 5 ปีที่แล้ว +1

    best tutorials for angular thank you vishwas for this wonderful tutorial

  • @catan.sales0160
    @catan.sales0160 5 ปีที่แล้ว +9

    Thank you very much for your greate tutorial!;
    My question: for accessing the array employees in class of employee-list.component.ts in employee-detail.component.ts, why don't we use extends keyword? (EmployeeDetailComponent extends EmployeeListComponent)?

  • @Megodavariammai
    @Megodavariammai 2 ปีที่แล้ว +1

    I want that employees name starts with s only what should I do for this

  • @kaviyap1950
    @kaviyap1950 3 ปีที่แล้ว +1

    U r such an amazing tutor sir🔥💯
    Hatsoff to u sir!!🙂❤️

  • @madhukarh5282
    @madhukarh5282 6 ปีที่แล้ว +6

    Really helpful, short course but much effective. Thanks Codevolution !

  • @walterwhite1186
    @walterwhite1186 2 ปีที่แล้ว

    Thanks you helped ne a lot 👏👏finally i understood the difference service and component❤️❤️❤️

  • @sosammathomas8969
    @sosammathomas8969 4 ปีที่แล้ว +1

    What a great teacher.thankyou so much for this

  • @viragshah1452
    @viragshah1452 5 ปีที่แล้ว +3

    Your tutorial is great to kickstart with and angular.
    *ngFor should be for element for for . I thought so..

    • @darshikarathi44
      @darshikarathi44 5 ปีที่แล้ว +1

      *ngFor is used inside element .
      ex-
      {{employee.name}}

  • @mokkagamer7717
    @mokkagamer7717 4 ปีที่แล้ว +1

    Your tutorials are just lit💥 good explanation , I have a doubt why we can't use component interaction here in case of sending array from one component to other.

    • @NoName-vw9hl
      @NoName-vw9hl 4 ปีที่แล้ว +1

      this is services tutorial. he wanted to implement services so he didnt use component interaction

  • @Superboy_Akshu
    @Superboy_Akshu 5 ปีที่แล้ว +2

    great video...very easy to understand , Thanks u sir.

  • @RCPN
    @RCPN 5 ปีที่แล้ว +1

    Hey there, excellent tutorials. I have a question, why don't we pass it as we did in the Input decorator type

    • @hariharak7243
      @hariharak7243 4 ปีที่แล้ว +2

      I guess @Input and @Output used for interaction between Parent and Child components. But here those two are separate components without any relation between them.

  • @gubbavenkatramana7526
    @gubbavenkatramana7526 4 ปีที่แล้ว

    really u are a angular god

  • @VinothKumar5403
    @VinothKumar5403 6 ปีที่แล้ว +6

    awesome tutorial..thanks keep doing your good work.

  • @tysonnfury9226
    @tysonnfury9226 2 ปีที่แล้ว

    I have a doubt why some components are added in declarations array and some are in imports in appmodule.ts file

  • @AllenZitting
    @AllenZitting 5 ปีที่แล้ว +1

    Great explanation! Thank you

  • @Learn-Once
    @Learn-Once 4 ปีที่แล้ว

    Why test component decorator had .app-test as selector but for employee-list component when the selector is .app-employee-list angular is not working but when changed it to employee-list it is working why is that?

  • @vaibhshinde24
    @vaibhshinde24 4 ปีที่แล้ว

    are there latest version tutorials available

  • @kathiravant1668
    @kathiravant1668 6 ปีที่แล้ว +1

    clear explanation and I can understand the concept.......but I was confused about ,Providers ,resolve and Promise is that an angular concept ...anyone help please

  • @eltonsaraci5418
    @eltonsaraci5418 4 ปีที่แล้ว

    Thanks! Great videos!

  • @muthuabdullah1146
    @muthuabdullah1146 6 ปีที่แล้ว +2

    why you didn't create a employee detail in old components.....
    what is the need to create a new components

    • @alexanderchori8154
      @alexanderchori8154 6 ปีที่แล้ว +2

      Well, in future developer might want to remove only detailed information about employees. In our case, he'd just remove tag from app.component.html.
      The other case is - imagine, that this is a big open source project. And some day one good developer wanted to contribute to this project and made a much more cooler employee-detail component with whistles and other stuff. So, all we need to do is remove folder with old component and paste new (or git merge or whatever you like) - it'll be as easy as pie.
      The main principle of angular - is this modularity

  • @piyush3777
    @piyush3777 ปีที่แล้ว

    Superb

  • @nedimcolak1974
    @nedimcolak1974 4 ปีที่แล้ว

    Good tutorial. Thanks!

  • @gomathirr2062
    @gomathirr2062 4 ปีที่แล้ว

    thank you so so much !!! its very very helpful !!! thanks alot Sir!!!

  • @dravidhemanth
    @dravidhemanth 3 ปีที่แล้ว

    very helpful Thank you

  • @Marquez857
    @Marquez857 6 ปีที่แล้ว

    Awesome work indeed...

  • @adityamodak3341
    @adityamodak3341 5 ปีที่แล้ว

    Facing problem in "app.module.ts" file. Some issue with the tag,browser is not showing anything.Please help

    • @vanzinvestor
      @vanzinvestor 5 ปีที่แล้ว

      app.module.ts you must import file EmployeeListComponent and EmployeeDetailComponent and register in declarations at @ngModule example
      *import { EmployeeListComponent } from './employee-list/employee-list.component';*
      *import { EmployeeDetailComponent } from './employee-detail/*
      @NgModule({
      declarations: [
      AppComponent,
      *EmployeeListComponent,*
      *EmployeeDetailComponent*
      ],
      imports: [
      BrowserModule
      ],
      providers: [],
      bootstrap: [AppComponent]
      })

  • @k.t.1594
    @k.t.1594 4 ปีที่แล้ว

    Solid video!

  • @hotmandead1
    @hotmandead1 5 ปีที่แล้ว

    Angular 8 just got released now and this video is 2 years old

  • @zoasis7805
    @zoasis7805 5 ปีที่แล้ว

    You are a hero

  • @sephiroth4488
    @sephiroth4488 5 ปีที่แล้ว

    getting the following error:
    ERROR in ./src/app/employee-list/employee-list.component.ts
    Module not found: Error: Can't resolve './
    Employee List

    {{employee.name}}

    ' in 'C:\Users\ChaseOfSpades\Documents\Angular\EmployeeList\src\app\employee-list'
    any help would be greatly appreciated.

    • @sephiroth4488
      @sephiroth4488 5 ปีที่แล้ว

      Figured it out. The tag for my template was templateUrl, not template.

  • @swapnilzoad3837
    @swapnilzoad3837 6 ปีที่แล้ว

    The error has occurred?????

  • @LiyaJohnNiravil
    @LiyaJohnNiravil 5 ปีที่แล้ว

    Nice tutorial................

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb ปีที่แล้ว

    Thank you..

  • @mohamedsahli9935
    @mohamedsahli9935 3 ปีที่แล้ว

    thank you

  • @icecoldnobody3447
    @icecoldnobody3447 2 ปีที่แล้ว

    watching this utub vid is TRAINING from our company

  • @hassannasir1564
    @hassannasir1564 6 ปีที่แล้ว

    from where you get ""employee"" of *ngFor="let employee of employees" ?

    • @Codevolution
      @Codevolution  6 ปีที่แล้ว +3

      It is an arbitary value that represents the value of one item in the array in each iteration. You can even have 'item' instead of 'employee'. You can call it anything you want :)

  • @christopherreffell147
    @christopherreffell147 5 ปีที่แล้ว

    VERY HELPFUL

  • @subratkumarbarik8896
    @subratkumarbarik8896 5 ปีที่แล้ว

    Your tutorials helping me a lot :)

  • @patelmit2284
    @patelmit2284 6 ปีที่แล้ว

    I am not able to load employee component in the app module so If any body can brief me about that it would be great for me.

  • @seolyohan
    @seolyohan 6 ปีที่แล้ว

    thank you sir

  • @SofianMW
    @SofianMW 5 ปีที่แล้ว

    awesome thanks

  • @songlee8456
    @songlee8456 6 ปีที่แล้ว +1

    5 star

  • @icecoldnobody3447
    @icecoldnobody3447 2 ปีที่แล้ว

    SFDC batch3 hi 😂

  • @r4jjin
    @r4jjin 4 ปีที่แล้ว

    4:00

  • @muratti32
    @muratti32 11 หลายเดือนก่อน

    valla billa azına caktım valla billa

  • @ASouza-ut9kb
    @ASouza-ut9kb 6 ปีที่แล้ว +2

    awesome tutorial..thanks keep doing your good work.