@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
class ClassFoo {
field: string;
constructor (public dependecy: DependencyClass) {}
method (foo: Type): boolean {
return this.dependecy();
}
}