Angular for Enterprise-Ready Web Applications by Doguhan Uluca

Angular for Enterprise-Ready Web Applications by Doguhan Uluca

Author:Doguhan Uluca
Language: eng
Format: epub
Tags: COM005000 - COMPUTERS / Enterprise Applications / General, COM060090 - COMPUTERS / Internet / Application Development, COM060180 - COMPUTERS / Web / Web Services & APIs
Publisher: Packt
Published: 2020-05-28T11:55:32+00:00


Reusable services leveraging OOP concepts

As mentioned, we have only worked with interfaces to represent data. We still want to continue using interfaces when passing data around various components and services. Interfaces are great for describing the kind of properties or functions an implementation has, but they suggest nothing about the behavior of these properties or functions.

With ES2015 (ES6), JavaScript gained native support for classes, which is a crucial concept of the OOP paradigm. Classes are actual implementations of behavior. As opposed to just having a collection of functions in a file, a class can properly encapsulate behavior. A class can then be instantiated as an object using the new keyword.

TypeScript takes the ES2015 (and beyond) implementation of classes and introduces necessary concepts like abstract classes, private, protected, and public properties, and interfaces to make it possible to implement OOP patterns.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.