attribute with quotes not working?
lucax88x opened this issue · 2 comments
lucax88x commented
Hello mate,
great work, anyway, I have a common case which is weird is not working, I'm probably doing something wrong...
md-button
@click(authenticate('facebook'))
i.fa.fa-facebook
md-button[ng-click=authenticate('google')]
i.fa.fa-google-plus
<md-button ng-click="authenticate(%%__STRING_TOKEN___%%4)">
<i class="fa fa-facebook"></i>
</md-button>
<md-button ng-click="authenticate(%%__STRING_TOKEN___%%5)">
<i class="fa fa-google-plus"></i>
</md-button>
Anaphase commented
Huh, I thought I had also created an issue on this a while back too - but I guess not. Yeah, SIML has a weird bug with quotes in attributes/directives. You have to do it like this:
md-button
@click("authenticate('facebook')")
i.fa.fa-facebook
md-button[ng-click="authenticate('google')"]
i.fa.fa-google-plus
lucax88x commented
thanks anaphase! ;)