Skip to content

Instantly share code, notes, and snippets.

View baddriverdave's full-sized avatar

Dave baddriverdave

  • Collective Labs
View GitHub Profile
@baddriverdave
baddriverdave / app.js
Created June 26, 2013 20:17
This is a ng directive for a tag library based on http://welldonethings.com/tags/manager. Plnkr is available here: http://plnkr.co/edit/uHUpF7d3SzRrBbxM44GH?p=preview. Much thanks to @i8ramin for his feedback and assistance
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
app.directive('tagsManager', function() {
return {
restrict: 'A',
scope: false,
"use strict";
function yourmom() {
alert("she doesn't like this");
}