components icon indicating copy to clipboard operation
components copied to clipboard

Can't bind to 'checked' since it isn't a known property of 'md-checkbox'

Open alexciesielski opened this issue 10 years ago • 4 comments

Angular 2.0.0-rc.5 Angular Material 2.0.0-alpha.7-4 angular-cli: 1.0.0-beta.11-webpack.2 node: 6.3.1 os: linux x64

Occurs only when building for production with ng serve -prod Just ng serve works fine.

This line is highlighted in the error message:

<td class="text-center">
    <md-checkbox 
        [checked]="account.enabled" 
        [title]="account.enabled ? 'Active' : 'Inactive'" 
        (change)="toggleAccountEnabled(account)">
    </md-checkbox>
</td>

alexciesielski avatar Aug 25 '16 14:08 alexciesielski

workaround: set mangle property to false in webpack config;

ptsydzik-zz avatar Aug 25 '16 19:08 ptsydzik-zz

Thanks, applying these changes fixes it for me. https://github.com/angular/angular-cli/commit/9188ea2bf2b3bbbba2b3640d9c08916f29d8d3f2

alexciesielski avatar Aug 25 '16 19:08 alexciesielski

hi guys, i'm currently facing the same issue, @ptsydzik said that we should edit the webpack config, how can i achieve such thing in an angular 2 project.

SoufianeFZ avatar May 10 '17 08:05 SoufianeFZ

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.