fix(compiler): allow decorators defined in the same file

This commit is contained in:
Alex Eagle
2016-05-07 08:58:20 -06:00
parent 0d71345b93
commit c1154b30c7
2 changed files with 11 additions and 1 deletions

View File

@ -19,3 +19,9 @@ export function NotADirective(c: any): void {}
@NotADirective
export class HasCustomDecorator {
}
// Verify that custom decorators have metadata collected, eg Ionic
export function Page(c: any): (f: Function) => void {return c;}
@Page({template: 'Ionic template'})
export class AnIonicPage {}