yuyang041060120 / angular2-ui-switch

angular2 ui switch component
http://yuyang041060120.github.io/angular2-ui-switch
MIT License
57 stars 36 forks source link

[FIX] Make flag parameter optional to avoid AOT break #12

Open MarcoFlyertech opened 7 years ago

MarcoFlyertech commented 7 years ago

AOT compilation breaks because getColor() in the templeate doesn't match the function signature. This should fix the issue.