feat(forms): migrated forms to typescript
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
library angular2.core.decorators;
|
||||
|
||||
export '../annotations_impl/annotations.dart';
|
||||
export '../annotations_impl/visibility.dart';
|
||||
|
||||
/* This file is empty because, Dart does not have decorators. */
|
||||
|
@ -1,6 +1,11 @@
|
||||
import {ComponentAnnotation, DirectiveAnnotation} from './annotations';
|
||||
import {ViewAnnotation} from './view';
|
||||
import {AncestorAnnotation, ParentAnnotation} from './visibility';
|
||||
import {
|
||||
SelfAnnotation,
|
||||
ParentAnnotation,
|
||||
AncestorAnnotation,
|
||||
UnboundedAnnotation
|
||||
} from './visibility';
|
||||
import {AttributeAnnotation, QueryAnnotation} from './di';
|
||||
import {makeDecorator, makeParamDecorator} from '../../util/decorators';
|
||||
|
||||
@ -12,8 +17,10 @@ export var Directive = makeDecorator(DirectiveAnnotation);
|
||||
export var View = makeDecorator(ViewAnnotation);
|
||||
|
||||
/* from visibility */
|
||||
export var Ancestor = makeParamDecorator(AncestorAnnotation);
|
||||
export var Self = makeParamDecorator(SelfAnnotation);
|
||||
export var Parent = makeParamDecorator(ParentAnnotation);
|
||||
export var Ancestor = makeParamDecorator(AncestorAnnotation);
|
||||
export var Unbounded = makeParamDecorator(UnboundedAnnotation);
|
||||
|
||||
/* from di */
|
||||
export var Attribute = makeParamDecorator(AttributeAnnotation);
|
||||
|
@ -1,4 +1,6 @@
|
||||
export {
|
||||
Self as SelfAnnotation,
|
||||
Ancestor as AncestorAnnotation,
|
||||
Parent as ParentAnnotation,
|
||||
Unbounded as UnboundedAnnotation
|
||||
} from '../annotations_impl/visibility';
|
||||
|
@ -10,7 +10,6 @@ export class DirectiveResolver {
|
||||
if (isPresent(annotations)) {
|
||||
for (var i = 0; i < annotations.length; i++) {
|
||||
var annotation = annotations[i];
|
||||
|
||||
if (annotation instanceof Directive) {
|
||||
return annotation;
|
||||
}
|
||||
|
Reference in New Issue
Block a user