mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Basic route stuff working
This commit is contained in:
14
hacking/RouteController.unit.js
Normal file
14
hacking/RouteController.unit.js
Normal file
@ -0,0 +1,14 @@
|
||||
describe('RouteController', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
});
|
||||
|
||||
it('Should init', function() {
|
||||
var rc = new RouteViewController({
|
||||
root: 'hacking/route.html';
|
||||
});
|
||||
rc.when('/', function() {
|
||||
console.log('Loaded');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user