Skip to content

Icon size is a scoped property

Choose a tag to compare

@projectweekend projectweekend released this 20 Jul 14:45
· 24 commits to master since this release

Previously size was a simple attribute on the skycon template tag. This was fine until you needed to do something like set the size dynamically based on $window.innerWidth for example. The solution was to move size into a scoped property so that the directive can watch for changes coming from a function in the controller. With all of that said, static values still work just fine and the default is still 64px if nothing is defined.