daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Apr 7th, 2013 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3.  
  4. // Declare app level module which depends on filters, and services
  5. angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
  6.   config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
  7.     $routeProvider.when('/view1', {templateUrl: 'partials/partial1', controller: MyCtrl1});
  8.     $routeProvider.when('/view2', {templateUrl: 'partials/partial2', controller: MyCtrl2});
  9.     $routeProvider.otherwise({redirectTo: '/index.html'});
  10.     $locationProvider.html5Mode(true);
  11.   }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top