本文整理汇总了TypeScript中angularjs-annotations/core/decorators.utils类的典型用法代码示例。如果您正苦于以下问题:TypeScript utils类的具体用法?TypeScript utils怎么用?TypeScript utils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了utils类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: Constant
export function Constant(name: string, value: any): (target: Class) => void {
return defineMetadata(new ConstantMetadata(name, value));
}
示例2: RouteConfig
export function RouteConfig(options: Array<IRouteDefinition>): (target: Class) => void {
return defineMetadata(new RouteConfigMetadata(options));
}
示例3: Run
export function Run(options: Class): (target: Class) => void {
return defineMetadata(new RunBlockMetadata(options));
}
示例4: Value
export function Value(name: string, value: any): (target: Class) => void {
return defineMetadata(new ValueMetadata(name, value));
}
示例5: Pipe
export function Pipe(options: IPipeMetadata): (target: Class) => void {
return defineMetadata(new PipeMetadata(options));
}
示例6: Config
export function Config(options: Class): (target: Class) => void {
return defineMetadata(new ConfigBlockMetadata(options));
}
示例7: Factory
export function Factory(name?: string): (target: Class) => void {
return defineMetadata(new FactoryMetadata(name));
}
示例8: Service
export function Service(name?: string): (target: Class) => void {
return defineMetadata(new ServiceMetadata(name));
}
示例9: Injectable
export function Injectable(): (target: Class) => void {
return defineMetadata(new InjectableMetadata());
}
示例10: Component
export function Component(options: IComponentMetadata): (target: Class) => void {
return defineMetadata(new ComponentMetadata(options));
}