Egghead Instructor Pascal Precht

Pascal Precht

I like headphones, art, skateboarding and coding. Angular GDE at @Google, @thoughtram co-founder and creator of @5thingsAngular



Unlock all of Pascal's PRO Lessons
click for instant access!

Browse Pascal Precht's lessons.

showing 8 lessons...

Understand Angular @Injectable

P

Understand OpaqueToken in Angular

P

Use Angular Value Providers

P

Use Angular Factory Providers

P

Use Angular Factory Providers with dependencies

P

Inject an Angular Service into a Component using Providers

Use Provide and UseClass in Angular Providers

P

Understand Angular Dependency Injection

angular2 tutorial about Understand Angular @Injectable

Understand Angular @Injectable

4:27 angular2 PRO

In order to resolve a dependency, Angular’s DI uses type annotations. To make sure these types are preserved when transpiled to ES5, TypeScript emits metadata. In this lesson we’ll explore how the @Injectable decorator ensures metadata generation for services that have their own dependencies.

angular2 tutorial about Understand OpaqueToken in Angular

Understand OpaqueToken in Angular

3:53 angular2 PRO

When using provider string tokens, there’s a chance they collide with other third-party tokens. Angular has with the concept of opaque tokens, that allow us to make whatever token we use unique, so we don’t run into collision problems. In this lesson we’ll explore how they work.

angular2 tutorial about Use Angular Value Providers

Use Angular Value Providers

3:00 angular2 PRO

Dependecies aren’t always objects created by classes or factory functions. Sometimes, all we really want is inject a simple value, which can be a primitive, or maybe just a configuration object. For these cases, we can use value providers and in this lesson we’ll discuss, how they are created.

angular2 tutorial about Use Angular Factory Providers

Use Angular Factory Providers

3:29 angular2 PRO

In this lesson, we discuss how and when to use factory providers, to enable dependencies that shouldn’t be available to Angular’s DI.

angular2 tutorial about Use Angular Factory Providers with dependencies

Use Angular Factory Providers with dependencies

3:00 angular2 PRO

This lesson discusses when and how to add dependencies, resolved by Angular’s DI, to factory providers. The example used in this lesson builts upon the previous lesson on understanding factory providers.

angular2 tutorial about Inject an Angular Service into a Component using Providers

Inject an Angular Service into a Component using Providers

3:07 angular2

This lesson explains how we can inject simple service dependencies into Angular 2 components using providers. We’ll also discuss what providers are and why they are needed.

angular2 tutorial about Use Provide and UseClass in Angular Providers

Use Provide and UseClass in Angular Providers

3:57 angular2 PRO

In this lesson, we’re going to take a look at how adding the class provide to the providers property of a component to create an actual provider. We’ll learn what a provider specifically does and how we can provide different dependencies with the same token.

angular2 tutorial about Understand Angular Dependency Injection

Understand Angular Dependency Injection

2:36 angular2

To get started with Dependency Injection, we first want to understand what it is actually all about. In this lesson, we take a look at Dependency Injection as a software design pattern and clarify why it is so useful that Angular implements a system for it.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?