Skip to content

Instantly share code, notes, and snippets.

Da99er

Block or report user

Report or block Da99er

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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");
You can’t perform that action at this time.