Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
how use how listener div

I want to use @hostListner on div to execute a method when div is loaded:

<div id="content">
<router-outlet ></router-outlet>
</div>

in my app.ts I do:

  @HostListener('window:load',['$event'])
  onPageLoad(event: Event) {
     console.log('loaded',event); }

I don't want how listener is called on 'window:load'. I want call somethink like this

 @HostListener('content:load',['$event'])
  onPageLoad(event: Event) {
     console.log('loaded',event); }

I don't know if I can do this. Anyone can help me?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!