angular-ts-decorators

A collection of angular 2 decorators for angularjs 1.5.x projects written in typescript
0 people use it
Author: 3830668?v=3 vsternbach

angular-ts-decorators

A collection of angular 2 style decorators for angularjs 1.5.x projects written in typescript

Prerequisites

angular-ts-decorators tries to mimic angular 2 style decorators as closely as possible.

Some of the decorator interfaces (@Component and @Directive) were heavily inspired by this excellent Angular 1.x styleguide (ES2015).

Behind the scenes it uses Metadata Reflection API to add metadata to the classes.

Installation

npm i --save-dev angular-ts-decorators

Dependencies: angular and reflect-metadata

I assume you're using this package for angular project written in typescript and using some kind of bundler like Webpack or SystemJS, so no need to worry about the dependencies then, they'll be resolved automatically by your module loader, otherwise you need to provide reflect-metadata shim by yourself.

See the Github Page for documentation.

comments powered by Disqus
This page was last updated 8 months ago.