1.0.4 • Published 2 years ago

@hossam.ahmed/required-decorator v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

RequiredDecorator

A normal typescript decorator used to mark an angular component property as required. Forces component users to provide a value for the property, otherwise application will throw exceptions

Quick Start

import { Required } from "@hossam.ahmed/required-decorator"

Angular Version

This library is built to work with Angular 4+.

Example

// example.component.ts
import {Required} from '@hossam.ahmed/required-decorator';
@Component({
selector: "app-example",
template: "Welcome {{ title }}"
})
export class ExampleComponent {
@Required() title: string;
}

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago