Created
June 28, 2014 10:35
-
-
Save HAKASHUN/68c93bbc99dcb5aeec8f to your computer and use it in GitHub Desktop.
肥大化した$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
$routeProvider. | |
when('/hoge', { | |
templateUrl: 'hoge.html', | |
controller: 'HogeCtrl', | |
controllerAs: 'ctrl', | |
resolve: { | |
data: [function(){ | |
// ここで色々書く | |
}] | |
} | |
}). | |
when('/foo', { | |
templateUrl: 'foo.html', | |
controller: 'FooCtrl', | |
controllerAs: 'ctrl', | |
resolve: { | |
data: [function(){ | |
// ここで色々書く | |
}] | |
} | |
}). | |
//... まだまだ続く |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment