-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning Angular - Third Edition
By :
Now that we have overviewed the most relevant bits and pieces of TypeScript, it's time to see how everything falls into place when building TypeScript classes. These classes are the building blocks of Angular applications.
Although class was a reserved word in JavaScript, the language itself never had an actual implementation for traditional POO-oriented classes as other languages such as Java or C# did. JavaScript developers used to mimic this kind of functionality by leveraging the function object as a constructor type and instantiating it with the new operator. Other standard practices, such as extending function objects, were implemented by applying prototypal inheritance or by using composition.
Now, we have an actual class functionality, which is flexible and powerful enough to implement the functionality our applications require. We already had the chance to tap into classes in the previous chapter. We'll look at them in more...