var gully = new Gully();
gully.state({
name: 'home',
url: '/',
templateUrl: 'templates/home.html',
controller: homeCtrl
}).state({
url: '/about',
templateUrl: 'templates/about.html',
controller: aboutCtrl
}).state({
name: 'user',
url: '/user/:uid',
templateUrl: 'templates/user.html',
controller: userCtrl
}).state({
name: 'post',
url: '/post/:pid',
templateUrl: 'templates/post.html',
controller: postCtrl
}).state({
url: '/404',
templateUrl: 'templates/404.html'
}).init();
- HTML5 History API implementation
- Sub states
- More tests