Created
December 1, 2015 09:00
-
-
Save tuchk4/12683667be66b562794c to your computer and use it in GitHub Desktop.
Route - Valentjs vs AngularJS
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('example').config(['$routeProvider', function($routeProvider) { | |
$routeProvider.when('/home', { | |
controller: 'home', | |
template: '<div> {{ name }} </div>' | |
}); | |
}]); |
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
valent.route('home', '/home', { | |
template: '<div> {{ controller.name }} </div>' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment