Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myApp.config('$routeProvider', function($routeProvider) {
- $routeProvider.
- when('/first', {
- templateUrl : 'partials/first.html'
- controller: "FirstController"
- }).
- when('/second', {
- templateUrl: 'partials/second.html'
- controller: "SecondController"
- }).
- otherwise({
- redirectTo:'/first'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement