Skip to content

Instantly share code, notes, and snippets.

View controllers.application.js
import Ember from 'ember';
var myCats =[Em.Object.create({"img":"http://images.postadsuk.com/2015/07/05/postadsuk.com-russian-blue-x-female-kitten.JPG","reting":0}),
Em.Object.create({"img":"http://dazedimg.dazedgroup.netdna-cdn.com/740/azure/dazed-prod/1150/0/1150466.jpg","reting":0})];
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
cats:myCats,
voteUp:function(cat){
cat.incrementProperty("rating");