Course Overview: Advanced Angular Component Patterns

Isaac Mann
InstructorIsaac Mann
Share this video with your friends

Social Share Links

Send Tweet
Published 6 years ago
Updated 6 years ago

Thanks for checking out this course!

My goal is for you to be able to use the patterns described in this course to make your components more flexible and easy to use. Many thanks to Kent C. Dodds for his Advanced React Component Patterns course which was a big inspiration for this course.

This course covers patterns that make a component's state, logic or ui configurable by a parent component. The patterns include: Compound Components, Provider Components, TemplateRefs and State Reducers.

I hope you enjoy this course as much as I did making it.

Isaac Mann: [00:00] Hi. My name is Isaac Mann, and this is my Advanced Angular Component Patterns course.

[00:06] When we write components, we're encapsulating decisions about the state logic or UI of the app. Each of the patterns I share in this course will help you to write components that are opinionated about their core purpose but allow parent components to override secondary concerns.

[00:24] If this course feels eerily similar to Kent C. Dodds' Advanced React Component Patterns course, that's because I intentionally took the patterns he was applying in React and looked for analogs in the Angular world. They're good patterns, and they're just as useful in an Angular app as they are in a React one.

[00:43] First, we'll see how to use input and output decorators to allow a parent component to interact with the internal state of the component.

[00:50] Then, we'll explore using compound components to have more control over the UI of a component. We'll look at different ways of maintaining the state of the compound component, including using a provider component.

[01:02] Next, we'll look at using TemplateRefs to offer complete UI control to the parent component. This is the equivalent of React's render prop pattern.

[01:11] Finally, we'll see how to override the internal logic of a component using the state reducer pattern.

[01:17] I hope you enjoy the course.

egghead
egghead

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today