{"size": 470, "ext": "js", "max_stars_repo_path": "app/features/plants/plants.js", "max_stars_repo_name": "gotaheads/sabz-web-prototype", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/features/plants/plants.js", "max_issues_repo_name": "gotaheads/sabz-web-prototype", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/features/plants/plants.js", "max_forks_repo_name": "gotaheads/sabz-web-prototype", "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": 18.8, "max_line_length": 53, "alphanum_fraction": 0.629787234}
'use strict';

/**
 * @ngdoc function
 * @name sabzPrototypeApp.controller:PlantsCtrl
 * @description
 * # PlantsCtrl
 * Controller of the sabzPrototypeApp
 */
angular.module('sabzPrototypeApp')
  .controller('PlantsCtrl', function ($log, Plants) {
    var ctrl = this;
    $log.info('PlantsCtrl');

    ctrl.create = function() {

    }
    Plants.loadAll().then(function (plants) {
      $log.info('Plants.load() ', plants);
      ctrl.plants = plants;
    })


  });
