-
-
Save kumkanillam/f2899d6e8090de38858dc52742506734 to your computer and use it in GitHub Desktop.
application-error is workingbut not the error is working.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from 'ember-controller'; | |
export default Controller.extend({ | |
init() { | |
this._super(...arguments); | |
console.log('application controller initialised'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from 'ember-controller'; | |
export default Controller.extend({ | |
init() { | |
this._super(...arguments); | |
console.log('error controller initialised'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from 'ember-controller'; | |
export default Controller.extend({ | |
init() { | |
this._super(...arguments); | |
console.log('loading controller initialised'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Route from 'ember-route'; | |
import RSVP from 'rsvp'; | |
import { later } from 'ember-runloop'; | |
export default Route.extend({ | |
model() { | |
return new RSVP.Promise((resolve, reject) => { | |
later(() => { | |
reject( | |
new Error('failed to load application model') | |
); | |
// resolve(); | |
}, 500); | |
}); | |
}, | |
actions: { | |
loading() { | |
console.log('application loading action'); | |
return true; | |
}, | |
error() { | |
console.log('application error action'); | |
return true; | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Route from 'ember-route'; | |
export default Route.extend({ | |
activate() { | |
console.log('error route activated'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Route from 'ember-route'; | |
export default Route.extend({ | |
activate() { | |
console.log('loading route activated '); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
padding: 15px; | |
} | |
:root::before { | |
content: "If you don't see anything here (apart from this message), then the Ember app produced a white screen of death :("; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.10.5", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.8.0", | |
"ember-data": "2.8.0", | |
"ember-template-compiler": "2.8.0", | |
"ember-testing": "2.8.0" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment