Do you want to get the component instance that is rendered on the browser? Here is a quick way to do it. I have a component called HelloComponent and it has a logMessage method inside it. Below is the code: import { Component, Input } from '@angular/...

Markdown supported · ⌘↵ to post
No responses yet.