{"size": 829, "ext": "js", "max_stars_repo_path": "src/modules/StateConfig.js", "max_stars_repo_name": "blueskyfish/temperature-sensor-monitor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/modules/StateConfig.js", "max_issues_repo_name": "blueskyfish/temperature-sensor-monitor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/modules/StateConfig.js", "max_forks_repo_name": "blueskyfish/temperature-sensor-monitor", "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": 26.7419354839, "max_line_length": 93, "alphanum_fraction": 0.6610373945}
/*
 * temperature-sensor-monitor - https://github.com/blueskyfish/temperature-sensor-monitor.git
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 BlueSkyFish
 */

(function (angular) {
  'use strict';

  angular.module('tsm').config(['$stateProvider', '$urlRouterProvider', StateConfig]);

  function StateConfig($stateProvider, $urlRouterProvider) {
    // navigate to the `sensors` state if not match the state (url)
    $urlRouterProvider.otherwise('/sensor');

    $stateProvider
      .state('sensor', {
        url: '/sensor',
        controller: 'tsmSensorController',
        templateUrl: 'states/sensor/SensorController.html'
      })
      .state('sensor.list', {
        templateUrl: 'states/sensor/list/SensorListController.html',
        controller: 'tsmSensorListController'
      });
  }

} (window.angular));
