Created
April 23, 2014 06:36
-
-
Save willrjmarshall/11204738 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
Darkswarm.directive "ofnModal", ($modal)-> | |
restrict: 'E' | |
replace: true | |
transclude: true | |
template: "<a>{{title}}</a>" | |
scope: | |
title: "@" | |
link: (scope, elem, attrs, ctrl, transclude)-> | |
console.log transclude() | |
elem.on "click", -> | |
scope.modalInstance = $modal.open(template: transclude()) | |
%ofn-modal{title: "Learn more"} | |
%h3 I'm a modal! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment