I have implemented onerror call in my app.js file and inside it I am checking the ‘if’ condition for ‘ember.testing’ in route:
let onerror = function() { if (ember.testing) { throw error; }
but there is same condition i have in my component.js file. So, when error is triggered it call the component.js file , whereas i expected it should call my app.js file condition.
Please can anyone of you suggest the same?
2 posts - 2 participants