Created
October 8, 2014 21:20
-
-
Save xcarpentier/c7f68c5384b1aa2c57b1 to your computer and use it in GitHub Desktop.
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
/* A éviter - quand on souhaite utiliser les routes */ | |
// route-config.js | |
angular | |
.module('app') | |
.config(config); | |
function config ($routeProvider) { | |
$routeProvider | |
.when('/avengers', { | |
templateUrl: 'avengers.html' | |
}); | |
} |
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
<!-- avengers.html --> | |
<div ng-controller="Avengers as vm"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment