Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = {
- initialize: function() {
- this.bindEvents();
- },
- bindEvents: function() {
- document.addEventListener('deviceready', this.onDeviceReady, false);
- },
- onDeviceReady: function() {
- app.receivedEvent('deviceready');
- },
- receivedEvent: function(id) {
- angular.element(document).ready(function() {
- angular.bootstrap(document);
- });
- console.log('Received Event: ' + id);
- }
- };
- // app.initialize();
- tplUrl = '/js/components/';
Add Comment
Please, Sign In to add comment