This file contains 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
// Add instrumentation for subsequent navigation start | |
router.on('willTransition', () => { | |
rumObj.appTransitionStart(); | |
}); | |
// Add instrumentation for rendering is complete | |
router.on('didTransition', () => { | |
Ember.run.scheduleOnce('afterRender', () => { | |
rumObj.appRenderComplete(); | |
}); |
This file contains 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
var rumObj = new RumTracking({ | |
'web-ui-framework': 'EMBER' | |
}); | |
// App Launch - window.performance.timing.navigationStart is the start marker | |
rumObj.setPageKey('feed_page_key'); | |
// Do rendering | |
rumObj.appRenderComplete(); | |
// Subsequent navigation |
This file contains 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains 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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '', | |
init() { | |
this._super(); | |
this.set('tagName', 'div'); | |
}, | |
}); |