AngularJs Loaded Event Directives

I just started using AngularJs directives using resources here , here and here .

I have a situation where I need to do something after downloading all the directives.

i.e

Scenario 1

  • Controller loading
  • Directive 1 download
  • Directive 2 download
  • Final event lights (preferably raised by the controller)

Scenario 2

  • Controller loads
  • Directive 1 download
  • Directive 2 download
  • Directive 3 download
  • Final event lights (preferably raised by the controller)

I can't seem to find the event loaded with directives. With a search, it was best to find a SO post (for which this answer works), but this seems like a "wide brush" approach.

What is the correct way to do this, please?

, , .

+4
2

...

@jack.the.ripper . SignalR .

, this .

0

$timeout , , .

$timeout(function() { 
    // do something here
});
+11

Source: https://habr.com/ru/post/1548132/


All Articles