paint-brush
Harnessing the power of Mixins in Angularby@Armandotrue
6,077 reads
6,077 reads

Harnessing the power of Mixins in Angular

by Armen Vardanyan7mAugust 26th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

TypeScript now supports the concept of a mixin - a function that can take a class, extend it with some functionality, and then return the new class, allowing other classes to extend from it. Mixins allow classes to mix and share functionalities. The concept is fairly uncomplicated - if we are familiar with inheritance, higher-order classes/functions and their syntax, we can jump right into them. In a sense, this allows for multiple inheritance - if some of our classes are only needed to share functionality, then we can write it inside a function so it can be mixed with other classes.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Harnessing the power of Mixins in Angular
Armen Vardanyan HackerNoon profile picture
Armen Vardanyan

Armen Vardanyan

@Armandotrue

Angular developer from Yerevan, Armenia

Learn More
LEARN MORE ABOUT @ARMANDOTRUE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Armen Vardanyan HackerNoon profile picture
Armen Vardanyan@Armandotrue
Angular developer from Yerevan, Armenia

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite