{"size": 901, "ext": "js", "max_stars_repo_path": "www/modules/product/product.directives.js", "max_stars_repo_name": "strongloop/loopback-example-ishop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "www/modules/product/product.directives.js", "max_issues_repo_name": "strongloop/loopback-example-ishop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "www/modules/product/product.directives.js", "max_forks_repo_name": "strongloop/loopback-example-ishop", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9534883721, "max_line_length": 67, "alphanum_fraction": 0.6193118757}
/**
 *
 * Copyright StrongLoop 2014
 *
 * User: seanbrookes
 * Date: 2014-01-07
 * Time: 8:27 AM
 *
 */
Product.directive('lbProductMainDirective', [
  'ProductService',
  function (ProductService) {

    return {
      templateUrl: './modules/product/templates/product.main.html',
      controller: function ($scope) {
        $scope.viewTitle = 'Products';
        ProductService.getAllProducts(function(products) {
          $scope.products = products;
        });
      }
    };
  }
]);

/*
Product.directive('lbAllProductListDirective', [
  '$templateCache',
  'ProductService',
  function ($templateCache, ProductService) {

    return {
      templateUrl: './modules/product/templates/product.list.html',
      controller: function ($scope, ProductService) {
        ProductService.getAllProducts(function(products) {
          $scope.products = products;
        });
      }
    };
  }
]);
*/
