Created
December 18, 2014 18:51
-
-
Save 8bitDesigner/d34bceea17152becdd29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.directive 'favorites', (overlay) -> | |
template: """ | |
<button ng-click="show()">Show favorites</button> | |
""" | |
link: (scope) -> | |
scope.show = -> | |
overlay.open | |
templateUrl: 'favorites-list.html' | |
$scope: scope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment