Skip to content

MdInput placeholder not visible when component is loaded dynamically #1074

@carol-braileanu

Description

@carol-braileanu

Bug:

I am using Angular-Material component in an application that uses modals. The modal is controlled by a global service that opens it and dynamically loads a component inside it, using DynamicComponentLoader.loadAsRoot(). When material textbox is rendered this way, the placeholder is not rendered at all. The <label> tag that should contain the placeholder is missing.

What is the expected behavior?

The textbox should be rendered with the placeholder

What is the current behavior?

The placeholder is missing. The <label> tag is missing.

What are the steps to reproduce?

http://plnkr.co/edit/ocnuzx

Which versions of Angular, Material, OS, browsers are affected?

Angular 2 rc.5 & Material 2.0.0-alpha.7-2

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