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

173
Views
Direction url other type users

I am making a web page and there are different types of users.Dealer and worker.Only worker can access index.html page and only dealer can access odeme.html.I did this. index.html=http://localhost:8080 odeme.html=http://localhost:8080/odeme

I'm a dealer and on the odeme.html page if i change the url,i can access index.html.I solved this problem with ajax call and location.href.But first index page appears then odeme.html appears.I want the odeme.html page to appear without the index page being displayed.How can i do?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try to use a guard for every role in your app.

Read more here about Router CanActivate

Also you can find a full implementation here

about 4 years ago · Juan Pablo Isaza Report
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!