2016-04-28 17:50:03 -07:00
|
|
|
import {Component} from '@angular/core';
|
2016-04-28 21:57:16 -07:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'my-comp',
|
|
|
|
template: '<div></div>',
|
|
|
|
})
|
|
|
|
export class MyComp {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'next-comp',
|
|
|
|
templateUrl: './multiple_components.html',
|
|
|
|
})
|
|
|
|
export class NextComp {
|
|
|
|
}
|
|
|
|
|
|
|
|
// Verify that exceptions from DirectiveResolver don't propagate
|
|
|
|
export function NotADirective(c: any): void {}
|
|
|
|
@NotADirective
|
|
|
|
export class HasCustomDecorator {
|
|
|
|
}
|
2016-05-07 08:58:20 -06:00
|
|
|
|
|
|
|
// Verify that custom decorators have metadata collected, eg Ionic
|
2016-06-08 16:38:52 -07:00
|
|
|
export function Page(c: any): (f: Function) => void {
|
2016-06-15 06:58:57 -07:00
|
|
|
return NotADirective;
|
2016-06-08 16:38:52 -07:00
|
|
|
}
|
2016-05-07 08:58:20 -06:00
|
|
|
|
|
|
|
@Page({template: 'Ionic template'})
|
2016-06-08 16:38:52 -07:00
|
|
|
export class AnIonicPage {
|
|
|
|
}
|