ブラウザ:
Colors.insert({名前: "緑"});
ReferenceError: 色が定義されていません [このエラーで中断]
var Colors = new Meteor.Collection("colors");
Colors.insert({name: "Red"});
var lists = new Meteor.Collection("Lists");
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to LendLib.";
};
Template.hello.events({
'click input' : function () {
// template data, if any, is available in 'this'
if (typeof console !== 'undefined')
myColor=Colors.find({}).fetch();
console.log("You pressed the button" + myColors);
}
});
}
エラーはどこにありますか? http://kf40.ru:3000でのテスト