Skip to content

Instantly share code, notes, and snippets.

View dflatley's full-sized avatar

David Flatley dflatley

View GitHub Profile
@dflatley
dflatley / controllers.js
Created September 11, 2014 21:21
AngularJS Directive for ShapeShift.js plugin
angular.module('shapeshiftapp.controllers', [])
.directive('shapeshift', function () {
return {
restrict: "A",
link: function (scope, element, attrs) {
// init shapeshift with no attributes
//$(element).shapeshift(scope.$eval(attrs.shapeshift));