forked from Archives/Athou_commafeed
angular prototype
This commit is contained in:
11
src/main/webapp/js/main.js
Normal file
11
src/main/webapp/js/main.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var app = angular.module('commafeed', [ 'commafeed.directives',
|
||||
'commafeed.controllers' ]);
|
||||
|
||||
app.config([ '$routeProvider', function($routeProvider) {
|
||||
$routeProvider.when('/feeds/view/:_type/:_id', {
|
||||
templateUrl : 'templates/feeds.html'
|
||||
});
|
||||
$routeProvider.otherwise({
|
||||
redirectTo : '/feeds/view/category/all'
|
||||
});
|
||||
} ]);
|
||||
Reference in New Issue
Block a user