import { Component } from '../../../src/index' ; import { Inject } from '../../../src/annotations' ; import { Optional } from '../../../src' ; declare const require ; @ Component ( { components : [ 'login' ] , template : require ( './welcome.component.html' ) , } ) export class WelcomeComponent { message : string = 'hello' ; computed : any = { name : function ( ) : number { return 123 ; } , } ; constructor ( @ Optional ( ) @ Inject ( 'user' ) private user = { } , @ Inject ( 'logger' ) private logger ) { this . message += '123' ; } created ( ) { } }