Closed thalesfsp closed 13 years ago
Hi! I'm trying to use NowJS with ExpressJS.
In the serve i do:
var express = require('express'), app = module.exports = express.createServer(), connect = require('connect'), jade = require('jade'), mongoStore = require('connect-mongodb'), nowjs = require("now"), everyone = nowjs.initialize(app); // initialize the sync everyone.now.test = 'test';
in the client i do (in Jade):
script now.ready(function(){ console.log(now.teste); });
In the console i get:
undefined
Where i'm wrong?
now.tests versus now.test ?
now.tests
now.test
Hi thalesfsp, there is nothing wrong with your code. If the issue is not the typo noted by steveWang, feel free to reopen the issue.
Eric
Hi! I'm trying to use NowJS with ExpressJS.
In the serve i do:
in the client i do (in Jade):
In the console i get:
Where i'm wrong?