https://github.com/tsvetan-ganev/angular-type-coercion-decorators
Angular 13 project that showcases the use of custom decorator functions that enable automatic type coercion for input properties inside components.
https://github.com/tsvetan-ganev/angular-type-coercion-decorators
angular decorators typescript
Last synced: about 2 months ago
JSON representation
Angular 13 project that showcases the use of custom decorator functions that enable automatic type coercion for input properties inside components.
- Host: GitHub
- URL: https://github.com/tsvetan-ganev/angular-type-coercion-decorators
- Owner: tsvetan-ganev
- Created: 2022-04-10T18:03:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T18:03:54.000Z (about 4 years ago)
- Last Synced: 2025-03-24T08:19:05.848Z (over 1 year ago)
- Topics: angular, decorators, typescript
- Language: TypeScript
- Homepage: https://tsvetan.dev/blog/article/property-type-coercion-in-angular-using-decorators/
- Size: 190 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About the project
This project showcases the usage of custom decorator functions that enable `@Input` properties type coercion in Angular components. You can read more about the topic in the [article on my website](https://tsvetan.dev/blog/article/property-type-coercion-in-angular-using-decorators/).
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.2.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.