Skip to content

Instantly share code, notes, and snippets.

@odoe
Created Dec 21, 2015
Embed
What would you like to do?
import Ember from 'ember';
import HomeVM from 'esri/widgets/Home/HomeViewModel';
export default Ember.Component.extend({
classNames: ['home', 'action'],
vm: null,
createHome: function() {
let view = this.get('view');
let vm = new HomeVM({ view });
this.set('vm', vm);
}.observes('view'),
actions: {
enable() {
this.get('vm').goHome();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment