The footer is getting loaded from another library. Could you please help how to use a service here to solve my problem.
We have another scenario also where the part of the template is coming from the back-end API. In this case also the html element which I want to manipulate in component ,is not available in ngAfterViewInit. It's getting available in ngAfterViewChecked as it's getting called multiple times and some time the service call will be done and that html DOM will be available.
The footer is getting loaded from another library. Could you please help how to use a service here to solve my problem.That is the source of the issue. In this case, a service won't help you, because the other library can't tap into angular services.