DragonKnight
DragonKnight

Reputation: 1870

md-ink-ripple does not read color value from controller.

html:

<div md-ink-ripple="color"> </div>

angular controller:

$scope.color = "#ffff00";

it only accepts solid hash code as parameter. I cannot pass scope variable to it. what is the solution?

Upvotes: 0

Views: 91

Answers (1)

Sachila Ranawaka
Sachila Ranawaka

Reputation: 41407

I think you need to use it with curly brackets

<div md-ink-ripple="{{color}}"> </div>

Upvotes: 1

Related Questions