The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Angular 2 - Building a Toggle Button Component

Angular 2 - Building a Toggle Button Component

7:28
This lesson shows you how to build a Toggle Button in Angular 2 from scratch. It covers using transclusion in Angular 2, setting up your own two-way binding, and making the button into a reusable component.
Watch this lesson now
Avatar
egghead.io

This lesson shows you how to build a Toggle Button in Angular 2 from scratch. It covers using transclusion in Angular 2, setting up your own two-way binding, and making the button into a reusable component.

Avatar
Yoni

Hi, cool session!
However, I believe it is missing a crucial part. The current implementation isn't functional as a formControl. I would add another part to demonstrate the implementation of ×´ControlValueAccessor×´ and using the toggle button inside a FormGroup.
Thanks! Yoni Farin

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?