Skip to content

Commit

Permalink
added code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocorrea committed May 20, 2018
1 parent 59b0eea commit c28fd0d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dist/index.d.ts
@@ -1,2 +1,18 @@
/// <reference types="angular" />
/**
* Component decorator.
* @param {angular.IComponentOptions} options - The component options.
*
* ### Example
*
* ```typescript
* import { Component } from 'angularjs-annotations';
*
* @Component({
* controller: AppComponentController,
* template: require('./app.component.html')
* })
* export class AppComponent implements ng.IComponentOptions {}
* ```
*/
export declare function Component(options: angular.IComponentOptions): Function;
16 changes: 16 additions & 0 deletions dist/index.js
@@ -1,5 +1,21 @@
"use strict";
exports.__esModule = true;
/**
* Component decorator.
* @param {angular.IComponentOptions} options - The component options.
*
* ### Example
*
* ```typescript
* import { Component } from 'angularjs-annotations';
*
* @Component({
* controller: AppComponentController,
* template: require('./app.component.html')
* })
* export class AppComponent implements ng.IComponentOptions {}
* ```
*/
function Component(options) {
return function (target) {
var ctor;
Expand Down
16 changes: 16 additions & 0 deletions index.ts
@@ -1,3 +1,19 @@
/**
* Component decorator.
* @param {angular.IComponentOptions} options - The component options.
*
* ### Example
*
* ```typescript
* import { Component } from 'angularjs-annotations';
*
* @Component({
* controller: AppComponentController,
* template: require('./app.component.html')
* })
* export class AppComponent implements ng.IComponentOptions {}
* ```
*/
export function Component(options: angular.IComponentOptions): Function {
return <returnFunc extends Function>(target: returnFunc) => {
var ctor: Function;
Expand Down

0 comments on commit c28fd0d

Please sign in to comment.