Skip to content

problem with sidenav component with webpack + ts-loader #539

Closed
@vladimir-ivanov

Description

@vladimir-ivanov

Bug, feature request, or proposal:

Bug

What is the expected behavior?

the sidenav to open when clicking on the button

<button md-button="" (click)="start.open()">open</button>
<md-sidenav-layout>
    <md-sidenav #start [opened]="true" (open)="mybutton.focus()">
        Start Sidenav.
        <br>
        <button md-button #mybutton (click)="start.close()">Close</button>
    </md-sidenav>
    <md-sidenav #end align="end">
        End Sidenav.
        <button md-button (click)="end.close()">Close</button>
    </md-sidenav>

    My regular content. This will be moved into the proper DOM at runtime.
</md-sidenav-layout>

What is the current behavior?

getting an error when clicking on the button:

vendors.js:24394 TypeError: self._el_5.open is not a function
at DebugAppView._View_HomePageComponent0._handle_click_0_0 (HomePageComponent.template.js:171)
at vendors.js:12859
at vendors.js:25924
at vendors.js:26655
at ZoneDelegate.invoke (vendors.js:54344)
at Object.onInvoke (vendors.js:8927)
at ZoneDelegate.invoke (vendors.js:54343)
at Zone.runGuarded (vendors.js:54251)
at NgZoneImpl.runInnerGuarded (vendors.js:8960)
at NgZone.runGuarded (vendors.js:7461)

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

What is the use-case or motivation for changing an existing behavior?

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

Is there anything else we should know?

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