Forked from deividkamui/components.sis-db-description-render.js
Last active
January 23, 2017 03:27
-
-
Save kumkanillam/dc5a2ebcc8852eae71eabfe42f010564 to your computer and use it in GitHub Desktop.
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
info: null, | |
ready: false, | |
ajaxCall: null, | |
didInsertElement: function () { | |
console.log('didInsertElement '); | |
this.queryData(); | |
}, | |
didUpdateAttrs: function () { | |
this._super(...arguments); | |
console.log('didUpdateAttrs '); | |
this.queryData(); | |
}, | |
queryData: function () { | |
/**Ember.$.post() **/ | |
Ember.RSVP.resolve('response').then((result) =>{ | |
this.set('info',result+'-'+this.get('idTitle')); | |
}); | |
}, | |
willDestroy: function () { | |
this.ajaxCall.abort(); | |
} | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actions: { | |
showDescription: function (params) { | |
console.log(' showDescription in app controller',params); | |
this.set('model.selectedModule', params); | |
} | |
} | |
}); |
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 Ember from 'ember'; | |
export default Ember.Route.extend({ | |
selectedModule: '', | |
model: function () { | |
return { | |
selectedModule: 'employeeModule' | |
}; | |
}, | |
}); |
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.11.0", | |
"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.10.2", | |
"ember-data": "2.11.0", | |
"ember-template-compiler": "2.10.2", | |
"ember-testing": "2.10.2" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment