Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. /**
  4.  * @ngdoc function
  5.  * @name critterNannycomApp.controller:MainCtrl
  6.  * @description
  7.  * # MainCtrl
  8.  * Controller of the critterNannycomApp
  9.  */
  10. var app = angular.module('critterNannycomApp',['ngRoute'])
  11.   .controller('MainCtrl', function ($scope) {
  12.     $scope.awesomeThings = [
  13.       'HTML5 Boilerplate',
  14.       'AngularJS',
  15.       'Karma'
  16.     ];
  17.   });
  18.  
  19. app.config(['$routeProvider', function($routeProvider) {
  20.     $routeProvider
  21.     .when('/gallery', {
  22.         template: '/views/gallery.html'
  23.     });
  24. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement