2013-09-04 12:39:26 -04:00
|
|
|
// hey Angular, we're bootstrapping manually!
|
|
|
|
window.name = 'NG_DEFER_BOOTSTRAP!';
|
|
|
|
|
2013-09-04 13:18:28 -04:00
|
|
|
require(['angular', 'js/controller/message-list', 'angularRoute', 'angularTouch', 'js/app-config'], function(angular, MessageListCtrl) {
|
2013-09-04 12:39:26 -04:00
|
|
|
'use strict';
|
|
|
|
|
2013-09-04 13:18:28 -04:00
|
|
|
var app = angular.module('mail', ['ngRoute', 'ngTouch']);
|
2013-09-04 12:39:26 -04:00
|
|
|
app.config(function($routeProvider) {
|
|
|
|
$routeProvider.when('/', {
|
|
|
|
templateUrl: 'tpl/message-list.html',
|
|
|
|
controller: MessageListCtrl
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
angular.element().ready(function() {
|
|
|
|
angular.bootstrap(document, ['mail']);
|
|
|
|
});
|
|
|
|
});
|