Skip to content

Initial JavaScript-Function should wait for the DOM to be ready before searching for the root-component #6205

@DrMueller

Description

@DrMueller

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues befre submitting
- [x ] feature request

Versions.

@angular/cli: 1.0.1
node: 6.9.1
os: win32 x64

Desired functionality.

Visual Studio Services Extensions currently allow only to add Javascript in their headers.
See this discussion: http://stackoverflow.com/questions/43766463/vsts-extension-with-angular2
And my Repo with a test: https://github.com/DrMueller/Ng-Vsts

Unfortunately, this doesn't work with the Angular-CLI JavaScript packages, since they expect the DOM to be loaded, throwing an error because the logic doesn't find the root-component.

I would like like the JavaScript to listen to the DOM-Ready event, before starting to search for the root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions