Skip to content

connor-murray/angular-typescript-decorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Typescript Decorators

This project contains Angular Typescript Decorators

Environment Decorator

A property decorator that takes as an input the name of the property from the environment file. The value of which will be bound to the property on which this decorator is applied.

Function Logger Decorator

A function decorator that will log a functions input arguments and its returned value if any. Usefull for debugging applications ensuring functions are recieving the correct input and providing correct output.

Lifecycle Logger Decorator

A class decorator that will log the lifecycle events of an Angular component i.e. ngOnInit(). Useful for debugging application ensuring components are initialsed and disposed of as expected.

Examples

The app.component.ts and app.service.ts files contain examples of each decorator.

About

Angular Typescript Decorators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published