https://github.com/angular/a
Library for annotating ES5
https://github.com/angular/a
Last synced: 3 months ago
JSON representation
Library for annotating ES5
- Host: GitHub
- URL: https://github.com/angular/a
- Owner: angular
- Archived: true
- Created: 2015-05-06T00:02:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T18:05:36.000Z (over 7 years ago)
- Last Synced: 2024-09-26T11:03:54.864Z (about 1 year ago)
- Language: JavaScript
- Size: 118 KB
- Stars: 70
- Watchers: 22
- Forks: 31
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a
Annotator for ES5. Lets you write ES5 with TypeScript-like annotations.
## Disclaimer
This library is super experimental. Like winter, changes are coming.
## Use
This JS code:
```js
a.RouteConfig([
{ path: '/' }
]).
View({
template: '...'
}).
for(MyController)
function MyController () {}
```
Is the same as this TypeScript code:
```ts
@RouteConfig([
{ path: '/' }
])
@View({
template: '...'
})
class MyController {}
```
## License
Apache 2.0