Services in Angular - Learning Angular (Part 6)

preview_player
Показать описание
Learn how to create a service, inject a service into a component for use, and more in this video! Find out what service is and its many functions.

Resources:

#Angular
Рекомендации по теме
Комментарии
Автор

This was amazing. I'm currently working on a project and needed this information and it was simple to follow, replicate and adapt to my needs. Thanks a bunch.

josuepintor
Автор

This series has been a game-changer for my workflow. Thanks!

zopokhan
Автор

I love this guy, I want to hug him <3

sualk
Автор

Thank you a lot for these videos, they are so helpful! But I'd suggest to show explorer bar in VS Code to understand in which file you are working, where this file is, where folder with services is and so on. It will help beginners to understand navigation better

mirci
Автор

mark thompson is the coolest angular teacher 🤩

DungLearnThings
Автор

Great tutorials thank you :) You're very good at presenting. :)

monksee
Автор

I'm wondering if all the congrats were on the script or are they improvised.. he's very good..

diprefranco
Автор

tip: if you use curly braces for lambda expressions, you must return the condition (even if the block still has just one line).

milosh
Автор

Thank you for being proud of me sir :)

TRANGNGUYEN-ndsd
Автор

While importing inject in the home component first letter of inject which is 'i' must be in small letter. If you add Inject with capital "I", then it will not work. At 4:21

mambacurry
Автор

Hi! Great tutorials! Just a question. Is the same the:
"housingService = inject(HousingService); " in detailsComponent

than the:

"housingService : HousingService = inject(HousingService);" in HomeComponent ?

Is there a reason to declare the type of the property in one and not in the other?
thanks!

gonzo
Автор

the angular website skips the previous tutorial video, this made it very confusing.

Vthoen
Автор

Hi, again about inject vs constructor params to inject a service and deeps
and this template (details) is starting to be big to fit in a ts file, so why not in separated file?

jediampm
Автор

Question,

instead of using inject, couldn't you then instanciate the service in a constructor?

jeverydk
Автор

He didn't close the <p> in details.component.ts.

onoes
Автор

yup, we've seen how awsome the angular cli is eheh

BernardoGuerreiro
Автор

no listing-description class in css file ...

ramijawadi
Автор

where are images of houses? nothing in assets

peymanebrahimi
Автор

A few confusing things to be more careful of next time you're editing: at 2:20 you say you're copying the contents but you're actually cutting them. Then after you paste them in housing.service.ts you, you say "back in housing.service.ts" which is very confusing since that's already where we are.

ohmegatech