Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No hook that tells us when all components have been loaded. #307

Open
distracteddev opened this issue Aug 19, 2013 · 1 comment
Open

No hook that tells us when all components have been loaded. #307

distracteddev opened this issue Aug 19, 2013 · 1 comment

Comments

@distracteddev
Copy link

Background Info

I am using AngularJS within Aura and decided to encapsulate my Angular 'modules' as Aura 'components'. I then have a 'main' component that sets up the main angular module which injects all the other defined angular modules into the main application.

The Issue

I need to run the following code within my 'main' Aura Component. It is responsible for setting up the 'main' Angular module which depends on several other Angular Modules which are defined within Aura Components. The issue I am having is I cannot seem to find an appropriate hook that lets me know that all Aura Components have loaded or a way of loading child componenets.

// Here I am setting up an angular module that depends  on 3 other angular modules.
Angular.module('mainApp', ['myDirectives', 'myFilters', 'myModels'])

Possible Solutions which might already exist but I don't know about:

  1. I imagine that Aura already has some event that it emits for the event described above but I don't know what it is
  2. This issue can also be solved if its possible for one Aura Component to load a second Aura Component and provide the load method with a callback for when that 'child' component has finished loading. Is there such a method?
@Florian-R
Copy link

Hello.

Have you take a look at #172 and #304? Those issues seems related to your problem.

Alse, regarding your second question, Component.html() might fit your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants