Created
September 26, 2014 07:48
-
-
Save sfroestl/d2ef703e286ae47b0a8a to your computer and use it in GitHub Desktop.
angular module config with ngRouter and
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
angular.module('app', ['ngRoute']) | |
.config(function ($routeProvider) { | |
$routeProvider | |
.when('/route', { | |
templateUrl: 'my-tpl.html', | |
controller: 'MyCtrl', | |
resolve: { /*resolve*/ } | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment