Created
July 24, 2015 01:28
-
-
Save chrisckchang/097bfa7551858e827ba4 to your computer and use it in GitHub Desktop.
Todolist Angular routeProvider
This file contains hidden or 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
angular.module("todolists", ["ui.bootstrap", "ui", "ngRoute"]) | |
.config(function($routeProvider) { | |
$routeProvider | |
.when("/", { | |
controller: "TodolistController as todolist", | |
templateUrl: "todolists.html", | |
resolve: { | |
todolists: function(Todolists) { | |
return Todolists.getTodolists(); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment