Services in Angular - Learning Angular (Part 6)

  Рет қаралды 39,971

Angular

Angular

Жыл бұрын

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:
Completed code for this lesson → goo.gle/44xzZ0A
Catch the next episode, Forms in Angular → goo.gle/3LW8YMP
Watch more episodes of Learning Angular→ goo.gle/Learning-Angular
Subscribe to Angular → goo.gle/Angular
#Angular

Пікірлер: 23
@Angular
@Angular Жыл бұрын
Watch more episodes of Learning Angular→ goo.gle/Learning-Angular
@mvishalshukla007
@mvishalshukla007 Жыл бұрын
I am eagerly waiting to see video tutorials on web component in angular
@zopokhan
@zopokhan Ай бұрын
This series has been a game-changer for my workflow. Thanks!
@DungLearnThings
@DungLearnThings Ай бұрын
mark thompson is the coolest angular teacher 🤩
@josuepintor9315
@josuepintor9315 Жыл бұрын
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.
@Angular
@Angular Жыл бұрын
So glad you found it valuable. Thanks so much for watching and good luck on your project!
@milosh996
@milosh996 2 күн бұрын
tip: if you use curly braces for lambda expressions, you must return the condition (even if the block still has just one line).
@monksee
@monksee 26 күн бұрын
Great tutorials thank you :) You're very good at presenting. :)
@mirci5459
@mirci5459 10 ай бұрын
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
@mambacurry3090
@mambacurry3090 8 ай бұрын
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
@BernardoGuerreiro
@BernardoGuerreiro 8 күн бұрын
yup, we've seen how awsome the angular cli is eheh
@gonzo1457
@gonzo1457 7 ай бұрын
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!
@Angular
@Angular 7 ай бұрын
Great question and this is likely Mark just showing both ways of doing it, but technically, TypeScript can infer the type of HousingService just fine.
@jediampm
@jediampm Жыл бұрын
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?
@Angular
@Angular Жыл бұрын
We made the decision to keep the template inline for this example to reduce the number of file someone new to Angular would have to reason about. In future courses, we'll mention more best practices about when to move to a separate file for templates. Thank you for watching, and thank you for the feedback.
@ramijawadi4356
@ramijawadi4356 7 ай бұрын
no listing-description class in css file ...
@jeverydk
@jeverydk 2 ай бұрын
Question, instead of using inject, couldn't you then instanciate the service in a constructor?
@Angular
@Angular 2 ай бұрын
Sure, that method works, too.
@Vthoen
@Vthoen Ай бұрын
the angular website skips the previous tutorial video, this made it very confusing.
@onoes9646
@onoes9646 10 күн бұрын
He didn't close the in details.component.ts.
@peymanebrahimi7756
@peymanebrahimi7756 Жыл бұрын
where are images of houses? nothing in assets
@Angular
@Angular Жыл бұрын
We're working to improve the download to include the images, but until then you can download the images from here: github.com/angular/angular/tree/main/aio/content/examples/first-app-lesson-00/src/assets
@peymanebrahimi7756
@peymanebrahimi7756 Жыл бұрын
@@Angular Tnx
Forms in Angular - Learning Angular (Part 7)
9:43
Angular
Рет қаралды 39 М.
HTTP in Angular - Learning Angular (Part 8)
12:42
Angular
Рет қаралды 34 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 12 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 15 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 756 М.
GraphQL vs REST: Which is Better for APIs?
7:31
IBM Technology
Рет қаралды 191 М.
What is Observable | Observables | Angular 12+
14:16
procademy
Рет қаралды 149 М.
React JS Explained In 10 Minutes
10:00
Dennis Ivy
Рет қаралды 258 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 104 М.
Protocol Buffers Crash Course
36:07
Hussein Nasser
Рет қаралды 239 М.
Would you recognize your soul mate by smell?
0:14
Den Done It
Рет қаралды 6 МЛН
КАРОЧЕ НЕУДОБНАЯ СИТУАЦИЯ😱🔥 #shorts
0:45
ПОПОВИЧИ
Рет қаралды 3,7 МЛН
ПОДВОДНЫЙ ГЕЙМИНГ #shorts
0:22
Паша Осадчий
Рет қаралды 1,7 МЛН
Задержи дыхание дольше всех!
0:42
Аришнев
Рет қаралды 3,2 МЛН
ВОТ как ЖЕНИХ выбирает СЕБЕ невесту 😱 #shorts
1:00
Лаборатория Разрушителя
Рет қаралды 9 МЛН