You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
671 B
CoffeeScript
13 lines
671 B
CoffeeScript
12 years ago
|
angular
|
||
11 years ago
|
.module( 'myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', 'ui', 'ui.directives'])
|
||
12 years ago
|
.config( ['$routeProvider', ($routeProvider)->
|
||
|
|
||
11 years ago
|
$routeProvider.when('/', {templateUrl: 'partials/home.html', controller: MyCtrl1})
|
||
|
$routeProvider.when('/freelance', {templateUrl: 'partials/freelance.html', controller: MyCtrl1})
|
||
11 years ago
|
$routeProvider.when('/projects', {templateUrl: 'partials/projects.html', controller: projectsCtrl})
|
||
11 years ago
|
$routeProvider.when('/blog', {redirectTo: '/blog'})
|
||
11 years ago
|
$routeProvider.when('/contact', {templateUrl: 'partials/contact.html', controller: MyCtrl2})
|
||
|
$routeProvider.otherwise({redirectTo: '/'})
|
||
12 years ago
|
])
|
||
|
|