Skip to content

mat-bottom-sheet binding data to template  #11627

@badpaybad

Description

@badpaybad

Bug, feature request, or proposal:

I use sample in https://stackblitz.com/angular/nvppaoepjnel?file=app%2Fbottom-sheet-overview-example.ts
modify a bit code

mat-bottom-sheet component
export class BottomSheetOverviewExample {
...
title='init value must change after 3 seconds';
onOnInit(){
setTimeout(() => {
this.title = "val after 3 seconds";
console.log(this.title);
}, 3000);
}

What is the expected behavior?

{{title}} in html will change after 3 seconds

What is the current behavior?

{{title}} no change

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

https://stackblitz.com/angular/nvppaoepjnel?file=app%2Fbottom-sheet-overview-example.ts
I change a bit code as image attached

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

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

Angular version 6, Material 2, win 10, Typescript latest, Chrome latest

Is there anything else we should know?

mat-bottom-sheet

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