Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
7immer committed Mar 11, 2016
0 parents commit 2690071
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .meteor/.finished-upgraders
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.

notices-for-0.9.0
notices-for-0.9.1
0.9.4-platform-file
notices-for-facebook-graph-api-2
1.2.0-standard-minifiers-package
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1 change: 1 addition & 0 deletions .meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
7 changes: 7 additions & 0 deletions .meteor/.id
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics

17e5wxv1cngkmrqpkn2j
21 changes: 21 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base # Packages every Meteor app needs to have
mobile-experience # Packages for a great mobile UX
mongo # The database Meteor supports right now
blaze-html-templates # Compile .html files into Meteor Blaze views
session # Client-side reactive dictionary for your app
jquery # Helpful client-side library
tracker # Meteor's client-side reactive programming library

standard-minifiers # JS/CSS minifiers run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers.
ecmascript # Enable ECMAScript2015+ syntax in app code

autopublish # Publish all data to the clients (for prototyping)
insecure # Allow all DB writes from clients (for prototyping)
manuel:viewmodel
2 changes: 2 additions & 0 deletions .meteor/platforms
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server
browser
1 change: 1 addition & 0 deletions .meteor/release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]
72 changes: 72 additions & 0 deletions .meteor/versions
1 change: 1 addition & 0 deletions viewmodel-demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* CSS declarations go here */
20 changes: 20 additions & 0 deletions viewmodel-demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<head>
<title>viewmodel-demo</title>
</head>

<body>
{{> demoVM}}
</body>

<template name="demoVM">
<input {{b "value: title"}} type="text">
<label {{b "text: title"}} ></label> <!-- DOES UPDATE ON VALUE CHANGE -->
<ul>
{{#each array}}
<li>
<input {{b "value: this.item"}} type="text">
<label {{b "text: this.item"}} ></label> <!-- DOES NOT UPDATE ON VALUE CHANGE -->
</li>
{{/each}}
</ul>
</template>
9 changes: 9 additions & 0 deletions viewmodel-demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if (Meteor.isClient) {
Template.demoVM.viewmodel({
title: "hello world",
array:[
{item:"foo"},
{item:"bar"}
]
});
}

0 comments on commit 2690071

Please sign in to comment.