> > 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.
> 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. > I have an idea, but for that to work, I need to know, you need to run your code only once? And when the footer is in place it is there for the entire life-cycle of the app? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/2fd8a8c2-ada4-4aed-8549-386bc95b140b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.