Text
https://www.typescriptlang.org/play/
https://www.typescriptlang.org/play/
class ClassFoo {
field: string;
constructor (public dependecy: DependencyClass) {}
method (foo: Type): boolean {
return this.dependecy();
}
}
https://www.typescriptlang.org/play/
@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();
}
}