Skip to content

Instantly share code, notes, and snippets.

View snapjay's full-sized avatar
💭
When you do things right, people won't be sure you've done anything at all.

snapjay snapjay

💭
When you do things right, people won't be sure you've done anything at all.
View GitHub Profile
@snapjay
snapjay / gist:5f659bb1b491c8fb2441
Created August 21, 2014 18:22
AngularJS directive for SVG 'use' sprite
'use strict';
angular.module('ngSvg', [])
.directive('usesvg', [function(){
return {
restrict : 'E',
replace: true,
controller : ['$scope', function($scope){