data binding

AngularJS Directives Naming Pitfalls

I've spent the last 20 minutes trying to figure out why my AngularJS directive was not working. Here's a sample of the directive: .directive("dataFolderItem", [ function() { return { "restrict" : "E", "replace" : true, "template" : "<p>Data Folder Item</p>", link : function(scope, elem, attr) { console.log("data folder…