Sha256: abf0680a68105cc2892c37dbff7c5c94e6341d30fe7cdedca536e0b923455876

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 KB

Contents

(function(angular) {
  'use strict';

  angular.module('ac.tabloConnectApp', ['ngSanitize', 'ui.router', 'ac.alertsModule', 'ac.tabloSyncModule', 'ac.tabloService', 'ac.titleize', 'ac.url'])
      .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/');

        $stateProvider
            .state('index', {
              url: '/',
              templateUrl: '/assets/tablo_connect/ng_app/templates/index.html',
              controller: 'HomeCtrl'
            })
            .state('movies', {
              url: '/movies',
              templateUrl: '/assets/tablo_connect/ng_app/templates/movies.html',
              controller: 'MoviesCtrl',
              resolve: ['tabloService', function (tabloService) {
                return tabloService.getMovies();
              }]
            })
            .state('shows', {
              url: '/shows',
              templateUrl: '/assets/tablo_connect/ng_app/templates/shows.html',
              controller: 'ShowsCtrl',
              resolve: ['tabloService', function (tabloService) {
                return tabloService.getShows();
              }]
            })
            .state('episodes', {
              url: '/episodes/:showName',
              templateUrl: '/assets/tablo_connect/ng_app/templates/episodes.html',
              controller: 'EpisodesCtrl',
              resolve: ['$stateParams', 'tabloService', function ($stateParams, tabloService) {
                return tabloService.getEpisodes($stateParams.showName);
              }]
            });
      }]);
})(window.angular);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tablo_connect-0.0.4 app/assets/javascripts/tablo_connect/ng_app/app.js
tablo_connect-0.0.3 app/assets/javascripts/tablo_connect/ng_app/app.js
tablo_connect-0.0.2 app/assets/javascripts/tablo_connect/ng_app/app.js