Method
constructor
(@Optional() @Host() os: OtherService, @Optional() @Host() hs: HostService)
Source from the content-addressed store, hash-verified
| 149 | logs: string[] = []; |
| 150 | |
| 151 | constructor(@Optional() @Host() os: OtherService, @Optional() @Host() hs: HostService) { |
| 152 | // os is null: true |
| 153 | this.logs.push(`os is null: ${os === null}`); |
| 154 | // hs is an instance of HostService: true |
| 155 | this.logs.push(`hs is an instance of HostService: ${hs instanceof HostService}`); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | @Component({ |
Callers
nothing calls this directly
Tested by
no test coverage detected