Skip to content

Instantly share code, notes, and snippets.

@handebc
handebc / application.js
Last active June 15, 2016 11:25
imageapp
//this .js is supposed be adapters/application.js but I couldn't create an adapter here
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import Ember from 'ember';
export default JSONAPIAdapter.extend({
findAll: function(){
return Ember.$.getJSON('http://api.donanimhaber.com/api/v1/site/NewsSite?pageIndex=0&pageSize=15');
}
@handebc
handebc / application.js
Last active June 10, 2016 13:53
imagePage
//this .js is supposed be adapters/application.js but I couldn't create an adapter here
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import Ember from 'ember';
export default JSONAPIAdapter.extend({
findAll: function(){
return Ember.$.getJSON('http://api.donanimhaber.com/api/v1/site/NewsSite?pageIndex=0&pageSize=15');
}
//this is in the adapters folder I couldn'tcreate it here
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import Ember from 'ember';
export default JSONAPIAdapter.extend({
findAll: function(){
return Ember.$.getJSON('http://api.donanimhaber.com/api/v1/site/NewsSite?pageIndex=0&pageSize=15');
}
import Ember from 'ember';
export default Ember.Component.extend({
scrollingTimeout: 100,
bindScrolling: function() {
var self = this,
onScroll = function() {
Ember.run.debounce(self, self.runScrolled, self.scrollingTimeout);
};
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});