[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
Thank you so much for providing a solution. I will try this approach. But I did not understand the second line "Make sure its as targeted as possible." Could you please elaborate little more. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS di

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
Yes it's like angular library. Could you please help me if there is way to retrieve? -- 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

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Sander Elias
Use a muttionObserver to get a hold of the element. Make sure its as targeted as possible. -- 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 a

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Sander Elias
Is the footer coming from an angular library? if so, you might be able to retrieve it -- 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 angul

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
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 are installing the modal t

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
- The code will be run each time I load a message. We have view overlay and for each message we are loading the overlay and the footer will be loaded inside view overlay. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussio

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Sander Elias
> > 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

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
Hi Sander, 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 com

[AngularJS] Re: What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Sander Elias
Hi Trupti, How is the footer added? It is strange its not there in afterviewInit. I suspect there is a condition somewhere, that keeps the footer from being added before ngAfterViewInit. if you need to "communicate" with the footer, perhaps a service that's injected will solve your issue. Rega

[AngularJS] What is the Life Cycle Event to check whether the Dom is fully loaded

2019-06-08 Thread Trupti Baliarsingh
I need to use the modal footer once the template is fully loaded. If I am writing the code inside *ngAfterViewInit *then I am not getting the footer element. If I am keeping the code inside *ngAfterViewChecked *then only I am getting the modal footer because *ngAfterViewChecked *is getting calle

[AngularJS] Re: make successive http calls that depend on each other

2019-06-08 Thread Sander Elias
Hi Kiflemariam, You should not cast all things to promises, that makes your life so much harder. newSetupApp(idToken) { const keyHandler = async key => { if (key) { await this.db.setKey(key).catch(() => console.log('setDb Failed')); await this.db.createData(key).catch(() => console.log('createDb

[AngularJS] How to create 3 level drop down options in angular. We can make use of angular-material?

2019-06-08 Thread Amarjit kumar Singh
How to create 3 level drop down options in angular. We can make use of angular-material? [image: dropdown.PNG] mat-select Pokemon -- None -- {{pokemon.viewValue}} The above code has two level. But how can we make it to the 3 level. Someth

[AngularJS] Re: Multiple Versions of Angular in a page

2019-06-08 Thread Sander Elias
Hi Paitum, Depending on how your projects/teams are organized, different demands are coming into play. A monorepo is a solution, but it doesn't work for everyone. reading this back, I think your situation does not really fit the mono-repo workflow. (Still, this would solve quite some problems.

[AngularJS] make successive http calls that depend on each other

2019-06-08 Thread Kiflemariam Andom
Hello, While my solution is working, it is a bit hard to follow and just ugly to look at. It is on Angular 5. All the 3 apis reply text. The steps are the following: Call api1(). If successful: it returns a simple text 'ok' it will create a server side cookie. Then call api2() which makes use