client/app/app.js
author ymh <ymh.work@gmail.com>
Wed, 11 Jun 2014 01:26:59 +0200
changeset 0 cef349423167
child 1 74bbdd739878
permissions -rw-r--r--
add basic file org + client prototype

(function(){
  'use strict';

  angular.module('ammico', [ 'ngRoute','ammicoHome', 'ammicoGallery', 'ammicoSlideshow', 'templates' ])
    .config(function($routeProvider) {
      $routeProvider.
        when('/', {
        controller: 'homeCtrl',
        templateUrl: 'home/home.html'
      }).
      when('/gallery', {
        controller: 'galleryCtrl',
        templateUrl: 'gallery/gallery.html'
      }).
      when('/slideshow', {
        controller: 'slideshowCtrl',
        templateUrl: 'slideshow/slideshow.html'
      }).
      otherwise({
        redirectTo: '/gallery'
      });
    })
    // .config(function ($routeProvider) {
    //   $routeProvider
    //     .otherwise({
    //       redirectTo: '/'
    //   });
    // });
    .config(function($logProvider){
      $logProvider.debugEnabled(true);
    });

})();