Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FabioCZ opened this issue Aug 9, 2016 · 4 comments
Closed

Comments

@FabioCZ
Copy link

FabioCZ commented Aug 9, 2016

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?

@FabioCZ FabioCZ 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 Aug 9, 2016
@jelbourn
Copy link
Member

jelbourn commented Aug 9, 2016

@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.

@jelbourn jelbourn closed this as completed Aug 9, 2016
@FabioCZ
Copy link
Author

FabioCZ commented Aug 9, 2016

@jelbourn thanks, got it to work

@zakdances
Copy link

zakdances commented Aug 21, 2016

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants