Created
December 31, 2014 08:26
-
-
Save wcadap/d9d2243525f4408ce574 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contactApp.config(['$routeProvider', function ($routeProvider) { | |
$routeProvider.when('/', { | |
templateUrl: "/app/Home/home.html" | |
}), | |
$routeProvider.when('/about', { | |
templateUrl: "app/Home/about.html" | |
}), | |
$routeProvider.when('/mycontacts', { | |
templateUrl: "app/contact/html/contactsList.html", | |
controller: "contactController" | |
}), | |
$routeProvider.when('/mycontacts/newcontact', { | |
templateUrl: "app/contact/html/contactForm.html" | |
}), | |
$routeProvider.otherwise({ | |
redirectTo: '/' | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment