thomporter / angular-ratings

Rating Directive, Icons & CSS for AngularJS
MIT License
40 stars 13 forks source link

Cant interpolate $scope var in notify-url using jade #1

Closed suissa closed 10 years ago

suissa commented 11 years ago

My code:

This works a(href='/api/deal/edit/{{gid}}') Save

This dont angular-ratings(ng-model="user_rating", notify-url="/api/deal/edit/{{gid}}", notify-id="id")

suissa commented 11 years ago

This works, but i need the gid. angular-ratings(ng-model="user_rating", notify-url="/api/deal/edit/", notify-id="id")

thomporter commented 10 years ago

So sorry, I never saw the email about this issue. Were you able to get this to work?

I believe the answer would be to set notify-url to a variable and then set that variable in your controller... I'd have to test it myself, but that should work. Honestly I'm surprised the gid wasn't interpolated as you had it.