Skip to content

Instantly share code, notes, and snippets.

@emaxerrno
Created February 17, 2013 00:05
Show Gist options
  • Select an option

  • Save emaxerrno/4969338 to your computer and use it in GitHub Desktop.

Select an option

Save emaxerrno/4969338 to your computer and use it in GitHub Desktop.
(function() {
'use strict';
angular.module('harvesttomarketApp').directive('popover', [
'$compile', function($compile) {
return {
restrict: "EA",
require: "?ngModel",
scope: {
popOverId: "@",
header: "@",
btnText: "@",
unsafeHtml: "@",
cb: "&",
model: "=",
display: "@"
},
link: function(scope, element, attr, ngModel) {
console.log(scope.model);
return $compile(attr.unsafeHtml)(scope);
},
transclude: true,
replace: false,
templateUrl: "views/directives/popover.html"
};
}
]);
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment