directives

Debugging Directives That Don't Load

Scenario : You come back to an AngularJS project after a few days. A major section of your app is no longer working. It was working great before. You realize that one of your directives is completely not loading. Throw a few logging functions in the link and they don't show…

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…