Skip to content

Instantly share code, notes, and snippets.

View landed1's full-sized avatar

landed landed1

View GitHub Profile
@landed1
landed1 / gist:9361d68a90e87a2b92cf
Last active December 4, 2015 00:37
Angular Modal directive using Refils
Using this modal found here - http://refills.bourbon.io/components/ copy the css as is and note the source of the custom modal directive will be the html plus some amends shown below.
add the modal (modal-dialog tag) to your Angular template file and add a couple of native directives to the body tag
ex
<body ng-app="baApp" ng-controller="MainCtrl" data-ng-init="init()" ng-class="{open: modalFlag, closed: !modalFlag}">
<modal-dialog></modal-dialog>
(create a new template file 'modal.html') add code to modal.html