Base solution for your next web application
Open Closed

public ngOnInit() #8491


User avatar
0
optixdev created

ngOnInit() not working on navigating to another pages but its workingon hard reload.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @optixdev

    Could you share your TypeScript code ?

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    optixdev created

    hi @ismcagdas

    This is the code:

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Does that work when you remove public from ngOnInit ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)