Skip to content

data binding not working for dynamic component #16849

@mcalmus

Description

@mcalmus

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When a component is created and inserted using a factory it shows up in the UI, but data-binding (both one-way and two-way) does not get applied.

Expected behavior

Component should work as though it was created the "normal" way.

Minimal reproduction of the problem with instructions

This plunkr illustrates the issues: https://plnkr.co/edit/sD800XIb23gD7xftJha8?p=preview

This was reported in #10523, but the issue was closed because it was deemed a support request.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Windows 7, Tomcat 8.5

  • Angular version: 2.0.X

4.0.2

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

IE 11, FF 44 ESR, FF 53

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TypeScript 2.2

  • Node (for AoT issues): node --version =

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