MEAN Web Development - Second Edition by Haviv Amos Q

MEAN Web Development - Second Edition by Haviv Amos Q

Author:Haviv, Amos Q. [Haviv, Amos Q.]
Language: eng
Format: azw3, epub
Publisher: Packt Publishing
Published: 2016-11-29T22:00:00+00:00


At runtime, the decorator will be executed with the target parameter populated with the MyClass constructor. Moreover, the decorator can also have arguments as follows:

function DecoratorWithArgs(options: Object) { return (target: Object) => { } } @DecoratorWithArgs({ type: 'SomeType' }) class MyClass { }

This pattern is also know as a decorator factory. Decorators may seem a bit odd, but as soon as we dive into Angular 2, you'll begin to understand their robustness.

Summary

TypeScript has been around for years and is being developed by a very strong team. This means that we've barely scratched the surface of its endless features and abilities. However, this introduction will provide us with the skills and knowledge required for diving into the great framework that Angular 2 is.



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.