@sreyansjain I need to correct my previous advice about using the dev branch.
I shouldn’t have instructed you to use the head of the dev branch (branch: "dev"
) because there’s currently some incomplete work on CSRF protection that will probably prevent your app from sending commands properly. And generally you shouldn’t rely on the head of the dev branch either. The framework is actively being developed, so sometimes the dev branch can be in a transitional state.
Instead, use the last “green” commit from the dev branch:
{:hologram, git: "https://github.com/bartblast/hologram.git", ref: "84867a2869fa4f58a01e3849eba3b7525773350d"}
This commit has the two-way data binding improvements I mentioned, but without the breaking CSRF changes that are still in progress. Your original code example should work correctly with this specific commit.
Sorry for the confusion!
PS: original post amended…