Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Problem with $viewContentLoaded #1657

Closed
@vslinko

Description

@vslinko

Hello.

Sometimes I need make ajax request with fully rendered html right after rendering.

I found comment #734 (comment) with necessary event, but $viewContentLoaded doesn't work as I expect.

  $scope.$on('$viewContentLoaded', function () {
      checkPageIsRendered();

      setTimeout(function () {
          checkPageIsRendered();
          document.write(statuses.join(' '));
      }, 100);
  });

That code prints false truehttp://embed.plnkr.co/BZl11W

If it is not bug but feature please tell me how to subscribe to right event?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions