// js/directives/nw-category-item.directive

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .directive("nwCategoryItem", nwCategoryItemDirective);

  //nwCategoryItemDirective.$inject = ["Category"];

  function nwCategoryItemDirective() {
    return {
      replace: true,
      restrict: "E",
      templateUrl: "/templates/directives/nw-category-item.directive.html",
      scope: {
        category: "="
      }
    }
  }
});

@@ -164,18 +164,16 @@
 ve);%0A%0A  
-//
 nwCatego
@@ -327,16 +327,18 @@
 teUrl: %22
+..
 /templat
@@ -422,16 +422,384 @@
 ry: %22=%22%0A
+      %7D,%0A      require: %22%5EnwCategorySelect%22,%0A      link: (scope, element, attrs, nwCategorySelectCtrl) =%3E %7B%0A        scope.makeActive = () =%3E %7B%0A          nwCategorySelectCtrl.setActiveCategory(scope.category);%0A        %7D;%0A%0A        scope.categoryActive = () =%3E %7B%0A          return nwCategorySelectCtrl.setActiveCategory(scope.category) === scope.category.name;%0A        %7D;%0A
       %7D%0A
@@ -810,10 +810,12 @@
 %7D%0A  %7D%0A%7D)
+()
 ;%0A

Edit templateUrl value. Add require, link values. Add nwCategoryItemDirective.