Skip to content

Template Parse errors: Can't bind to md-ripple-trigger/md-ripple-color #973

Closed

Description

@FabioCZ

Bug, feature request, or proposal:

bug

What is the expected behavior?

md-button directive should work

What is the current behavior?

After updating to alpha 7, I get this error when loading my angular 2 application:

Template parse errors:
Can't bind to 'md-ripple-trigger' since it isn't a known property of 'div'. ("*ngIf="isRippleEnabled()" class="md-button-ripple" [class.md-button-ripple-round]="isRoundButton()" [ERROR ->][md-ripple-trigger]="getHostElement()" [md-ripple-color]="isRoundButton() ? 'rgba(255, 255, 255, 0.2)"): MdButton@0:180
Can't bind to 'md-ripple-color' since it isn't a known property of 'div'. ("ton-ripple" [class.md-button-ripple-round]="isRoundButton()" [md-ripple-trigger]="getHostElement()" [ERROR ->][md-ripple-color]="isRoundButton() ? 'rgba(255, 255, 255, 0.2)' : ''" md-ripple-background-color="rgb"): MdButton@0:219

What are the steps to reproduce?

https://gist.github.com/FabioCZ/7578c4cbebdd23d6f38f62c2f1fc9e13

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

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

angular 2 rc5
angular2-material alpha 7
chrome 52

Is there anything else we should know?

Activity

  1. changed the title [-]Template Parse errors: Cna't bind to md-ripple-trigger/md-ripple-color[/-] [+]Template Parse errors: Can't bind to md-ripple-trigger/md-ripple-color[/+] on Aug 9, 2016
  2. jelbourn commented on Aug 9, 2016

    @jelbourn
    Contributor

    @FabioCZ if you're not changing to NgModules right away, then you need to also include MD_RIPPLE_DIRECTIVES from core in your directives list.

  3. FabioCZ commented on Aug 9, 2016

    @FabioCZ
    Author

    @jelbourn thanks, got it to work

  4. zakdances commented on Aug 21, 2016

    @zakdances

    I'm using NgModule and I still need to include MD_RIPPLE_DIRECTIVES or I get the same error.

    Nevermind, I forgot to import { MdButtonModule } from '@angular2-material/button

  5. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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